diff options
author | Landon Fuller <landonf@bikemonkey.org> | 2013-03-02 14:08:47 -0500 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-03-02 23:34:03 +0100 |
commit | c692bb02b039ae8fef6ba968fd13b36ad7d62a72 (patch) | |
tree | ef0ecae7596c009ad93132a8da797a81d76af291 /libgpo | |
parent | 606f5d6cc6b018259ba0306fe3b55e21b4b70fdb (diff) | |
download | samba-c692bb02b039ae8fef6ba968fd13b36ad7d62a72.tar.gz samba-c692bb02b039ae8fef6ba968fd13b36ad7d62a72.tar.bz2 samba-c692bb02b039ae8fef6ba968fd13b36ad7d62a72.zip |
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
Diffstat (limited to 'libgpo')
0 files changed, 0 insertions, 0 deletions