1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

r1712: this should fix a bug with a spinning client when a server dies

unexpectedly. bug found by abartlett.
(This used to be commit 566b7a9ce9)
This commit is contained in:
Andrew Tridgell 2004-08-10 23:06:59 +00:00 committed by Gerald (Jerry) Carter
parent e685961905
commit 7a523b2bc4

View File

@ -433,6 +433,10 @@ static void smbcli_transport_process_recv(struct smbcli_transport *transport)
transport->recv_buffer.header +
transport->recv_buffer.received,
NBT_HDR_SIZE - transport->recv_buffer.received);
if (ret == 0) {
smbcli_transport_dead(transport);
return;
}
if (ret == -1) {
if (errno == EINTR || errno == EAGAIN) {
return;