libsmb: Make sure that the TCP socket is non-blocking
authorVolker Lendecke <vl@samba.org>
Fri, 20 Mar 2020 10:46:43 +0000 (11:46 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 25 Mar 2020 09:04:28 +0000 (09:04 +0000)
commit0e50ed193606c3716bcd3955e6305f6891f34cff
treea870c41f89865c3408753d3b6c5e67efee22d7fd
parentf52f531771d6a25b2e363384bf94a9fa14334e1b
libsmb: Make sure that the TCP socket is non-blocking

All traffic goes through smbXcli_base.c, and that is prepared to deal
with short writes via the conn->outgoing queue. Instead of making sure
that all callers properly set the socket nonblocking, do it here, so
that we can later optimize sending out data to the server.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
libcli/smb/smbXcli_base.c