svn commit: samba r18916 - in
branches/SAMBA_4_0/source/libcli/util: .
tridge at samba.org
tridge at samba.org
Tue Sep 26 11:27:09 GMT 2006
Author: tridge
Date: 2006-09-26 11:27:09 +0000 (Tue, 26 Sep 2006)
New Revision: 18916
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18916
Log:
fixed the messaging layer on *BSD systems. When a socket was full we
were getting ENOBUFS, which mapped to NT_STATUS_NO_MEMORY, which in
turn caused the messaging code to loop trying until it gave up.
Now it correctly falls back to select. Messaging speed goes from 3
messages per second to over 7000 on my test vmware box. Not bad for a
one line change :)
Modified:
branches/SAMBA_4_0/source/libcli/util/errormap.c
Changeset:
Modified: branches/SAMBA_4_0/source/libcli/util/errormap.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/util/errormap.c 2006-09-26 10:34:40 UTC (rev 18915)
+++ branches/SAMBA_4_0/source/libcli/util/errormap.c 2006-09-26 11:27:09 UTC (rev 18916)
@@ -1278,7 +1278,7 @@
{ ENOTSOCK, NT_STATUS_INVALID_HANDLE },
{ EFAULT, NT_STATUS_INVALID_PARAMETER },
{ EMSGSIZE, NT_STATUS_INVALID_BUFFER_SIZE },
- { ENOBUFS, NT_STATUS_NO_MEMORY },
+ { ENOBUFS, STATUS_MORE_ENTRIES },
{ ENOMEM, NT_STATUS_NO_MEMORY },
{ EPIPE, NT_STATUS_CONNECTION_DISCONNECTED },
{ ECONNREFUSED, NT_STATUS_CONNECTION_REFUSED },
More information about the samba-cvs
mailing list