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:
parent
e685961905
commit
7a523b2bc4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user