r3314: added a option "socket:testnonblock" to the generic socket code. If
authorAndrew Tridgell <tridge@samba.org>
Thu, 28 Oct 2004 07:55:33 +0000 (07:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:04:53 +0000 (13:04 -0500)
commit990d76f7cbd4339c30f650781c40463234fc47e1
treee65cae139e5028f46ea635c0aabd99d6efbe71c6
parent34cd0662f0340720fa45dd16c82496cd76e92268
r3314: added a option "socket:testnonblock" to the generic socket code. If
you set this option (either on the command line using --option or in
smb.conf) then every socket recv or send will return short by random
amounts. This allows you to test that the non-blocking socket logic in
your code works correctly.

I also removed the flags argument to socket_accept(), and instead made
the new socket inherit the flags of the old socket, which makes more
sense to me.
(This used to be commit 406d356e698da01c84e8aa5b7894752b4403f63c)
source4/lib/messaging/messaging.c
source4/lib/socket/socket.c
source4/lib/socket/socket.h
source4/lib/socket/socket_ipv4.c
source4/lib/socket/socket_unix.c
source4/smbd/process_single.c
source4/smbd/process_standard.c
source4/smbd/process_thread.c