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)
commit406d356e698da01c84e8aa5b7894752b4403f63c
treef94a2b840b652e6e11cdd8ddec741f126db62a74
parenta2d92aa431e0e9752387eebe741d9e6f376f74d7
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.
source/lib/messaging/messaging.c
source/lib/socket/socket.c
source/lib/socket/socket.h
source/lib/socket/socket_ipv4.c
source/lib/socket/socket_unix.c
source/smbd/process_single.c
source/smbd/process_standard.c
source/smbd/process_thread.c