summaryrefslogtreecommitdiffstats
path: root/lib/async_req
Commit message (Collapse)AuthorAgeFilesLines
* CVE-2013-4408:async_sock: add some overflow detection to read_packet_handler()Stefan Metzmacher2013-12-091-0/+5
| | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10185 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* lib: Add before/after hooks to async_connectVolker Lendecke2013-05-172-8/+37
| | | | | | | This will facilitiate [un]become_root for smbd to connect safely to ctdbd. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* lib: Make async_sock includable on its ownVolker Lendecke2012-09-251-0/+1
| | | | | Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Tue Sep 25 18:03:46 CEST 2012 on sn-devel-104
* lib/async_req: Retry read_packet with read(2)Volker Lendecke2012-03-231-0/+4
| | | | | | | This way it will also work with pipes Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Mar 23 17:31:24 CET 2012 on sn-devel-104
* build: avoid util.h as a public header name due to conflict with MacOSAndrew Bartlett2011-09-231-1/+1
|
* s3: Fix bug 8385Volker Lendecke2011-08-251-26/+14
| | | | | | | | | | | | Poll and select behave differently regarding error handling. When doing the connect(2), we can not rely on poll telling us both readability and writability upon error. Just always try a second connect(2). At least on Linux it returns 0 when it succeeded. Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Aug 25 19:39:12 CEST 2011 on sn-devel-104
* build: provide tevent-util as a public libraryAndrew Bartlett2011-08-081-1/+1
| | | | | | | This is needed so that OpenChange can get at _tevent_req_nterr(), which is referenced by generated PIDL output. Andrew Bartlett
* Add wait_for_read_send/recvVolker Lendecke2011-07-282-0/+60
| | | | Wait for readability of a socket as a tevent_req
* Fix bug #8197 - winbind does not properly detect when a DC connection is dead.Jeremy Allison2011-06-061-6/+32
| | | | | | | | | | | | | | | Only waiting for writability doesn't get fd errors back with poll. So always begin by selecting for readability, and if we get it then see if bytes were available to read or it really is an error condition. If bytes were available, remove the select on read as we know we will retrieve the error when we've finished writing and start reading the reply (or the write will timeout or fail). Metze and Volker please check. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Jun 6 21:53:16 CEST 2011 on sn-devel-104
* async_rec/async_sock.c - add an additional "const"Matthias Dieter Wallnöfer2011-03-231-1/+2
| | | | | | | | | In order to suppress a build warning. Acked-by: Volker and Metze Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Wed Mar 23 10:26:23 CET 2011 on sn-devel-104
* s3-waf: add UTIL_TEVENT subsystem (as in ../lib/util/wscript)Günther Deschner2011-02-141-1/+2
| | | | Guenther
* Use sockaddr_storage in async sendto/recvfromVolker Lendecke2010-12-292-11/+28
|
* async_send->sendto, async_recv->recvfromVolker Lendecke2010-12-282-42/+53
|
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-311-4/+0
| | | | | | | | The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
* s4-waf: inline LIBREPLACE_NETWORK into 'replace'Stefan Metzmacher2010-04-121-1/+1
| | | | metze
* s4-waf: removed the AUTOGENERATED markersAndrew Tridgell2010-04-061-3/+0
| | | | we won't be using the mk -> wscript generator again
* s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2010-04-061-0/+2
| | | | them
* build: commit all the waf build files in the treeAndrew Tridgell2010-04-061-0/+9
|
* async_sock: return -1/EPIPE if we're getting an end of file on read.Stefan Metzmacher2009-09-211-0/+4
| | | | | | This makes the error handling in the callers easier. metze
* Fix a = vs == error in writev_handlerVolker Lendecke2009-06-151-1/+1
|
* async_sock: try fix the source4 build on FreeBSD, Solaris, SLES8Stefan Metzmacher2009-06-083-6/+11
| | | | metze
* Fix an uninitialized variable read in async_connect_sendVolker Lendecke2009-06-061-5/+5
|
* Only err on readability if writev_send was explicitly asked to do soVolker Lendecke2009-06-041-1/+1
| | | | A socket might be readable for other reasons
* Handle EINTR in async_sock.cVolker Lendecke2009-05-301-0/+16
|
* libwbclient: Add async call framework.Kai Blin2009-05-302-2/+3
|
* async_sock: Change license to LGPLv3+Volker Lendecke2009-05-292-16/+24
|
* Change async_connect to use connect instead of getsockopt to get the errorVolker Lendecke2009-05-241-14/+24
| | | | | On my Linux box, this is definitely the more reliable strategy with unix domain sockets, and according to my tests it also works correctly with TCP sockets.
* Add "err_on_readability" to writev_sendVolker Lendecke2009-05-242-2/+14
| | | | | | A socket where the other side has closed only becomes readable. To catch errors early when sitting in a pure writev, we need to also test for readability.
* Allow NULL queue to writev_sendVolker Lendecke2009-05-241-6/+16
|
* Remove async_reqVolker Lendecke2009-04-087-614/+1
|
* Use recv instead of read in read_packet_handlerVolker Lendecke2009-04-051-1/+2
| | | | This way the socket wrapper pcap file also sees the replies :-)
* Remove some transitional code in writev_sendVolker Lendecke2009-03-171-17/+1
|
* Remove some unused code from async_req.[ch]Volker Lendecke2009-03-162-51/+0
|
* async_sock: fix truncating of the temporary iovec in writev_send/recv()Stefan Metzmacher2009-03-111-1/+1
| | | | | | Volker: please check! metze
* Add "queue" to writev_sendVolker Lendecke2009-03-082-3/+30
| | | | | Unless higher levels queue themselves somehow, writev will *always* be queued. So the queueing should be done at the right level.
* Make struct tevent_req opaqueSimo Sorce2009-03-021-20/+20
| | | | | | | | | | | | | | | | Move struct tevent_req in tevent_internal, and ad getters and setters for private data and the callback function. This patch also renames 'private_state' into 'data'. What is held in this pointer is in fact data and not a state like enum tevent_req_state. Calling it 'state' is confusing. The functions addedd are: tevent_req_set_callback() - sets req->async.fn and req->async.private_data tevent_req_set_print_fn() - sets req->private_print tevent_req_callback_data() - gets req->async.private_data tevent_req_data() - gets rea->data This way it is much simpler to keep API/ABI compatibility in the future.
* Simplify async_connect_send slightlyVolker Lendecke2009-02-281-9/+6
|
* Remove async_req based async_sendVolker Lendecke2009-02-252-240/+0
|
* Remove async_req based async_recvVolker Lendecke2009-02-252-71/+0
|
* Add more conventional async_recvVolker Lendecke2009-02-242-0/+72
|
* Add more conventional async_sendVolker Lendecke2009-02-242-0/+73
|
* Remove unused param_connect structVolker Lendecke2009-02-241-11/+0
|
* Remove unused recvallVolker Lendecke2009-02-242-115/+0
|
* Add async read_packetVolker Lendecke2009-02-242-0/+128
|
* Fix async writevVolker Lendecke2009-02-241-1/+1
|
* Remove async sendallVolker Lendecke2009-02-242-116/+0
|
* Add async writevVolker Lendecke2009-02-242-0/+109
|
* Convert async_connect to tevent_reqVolker Lendecke2009-02-242-32/+33
|
* async_sock: Use tevent_timeval instead of timeval functionsKai Blin2009-02-171-3/+4
|
* s3 async: Fix the build on systems that have ETIMEDOUT but not ETIMETim Prouty2009-02-091-2/+2
| | | | Fallback on EAGAIN