1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source4/lib
Landon Fuller c692bb02b0 Handle EMSGSIZE on UNIX domain sockets.
On some systems (eg, FreeBSD) the default SO_SNDBUF for UNIX
domain sockets is to small, and EMSGSIZE is returned. Other
systems provide a larger default send buffer, but there is
still no guarantee that the buffer will be sized appropriately.

This patch modifies the sendto() path to attempt to resize
the SO_SNDBUF dynamically upon an EMSGSIZE failure, and then
retry the send.

This fixes local DCE/RPC errors on FreeBSD, eg:

https://lists.samba.org/archive/samba-technical/2013-January/089881.html

Signed-Off-By: Landon Fuller <landonf@bikemonkey.org>

Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Mar  2 23:34:03 CET 2013 on sn-devel-104
2013-03-02 23:34:03 +01:00
..
cmdline waf: Make sure we link against samba-util. 2013-02-14 16:56:29 +01:00
com s4-lib: Don't leak plugin handle on error. 2013-02-22 16:36:14 +01:00
events s4:lib/events: make use of samba_tevent_set_debug() 2013-02-28 12:12:36 +01:00
messaging Move python modules from source4/scripting/python/ to python/. 2013-03-02 03:57:34 +01:00
policy s4-policy: Fix memory leaks in push_recursive(). 2013-02-22 16:36:14 +01:00
registry s4:pyregistry: make use of samba_tevent_context_init() 2013-02-28 12:07:31 +01:00
samba3 s4-lib/samba3: Remove unused smbpasswd_decode_acb_info() 2012-02-10 16:45:13 +11:00
socket Handle EMSGSIZE on UNIX domain sockets. 2013-03-02 23:34:03 +01:00
stream s4 dns: Fix TCP handling in the DNS server 2012-03-06 21:17:18 +01:00
tls s4-lib/tls: Try socket_send() multiple times to send partial packets 2012-07-18 11:23:55 +02:00
wmi s4:lib/wmi: avoid '//' comments 2011-10-08 07:24:14 +02:00