mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-04 19:13:35 +01:00
ETIMEDOUT is a valid error code here. Fixes intermittent assertion failure on laggy networks
This commit is contained in:
parent
3cd0b1b647
commit
70cf2d41ba
@ -308,7 +308,8 @@ int zmq::stream_engine_t::write (const void *data_, size_t size_)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// Signalise peer failure.
|
// Signalise peer failure.
|
||||||
if (nbytes == -1 && (errno == ECONNRESET || errno == EPIPE))
|
if (nbytes == -1 && (errno == ECONNRESET || errno == EPIPE ||
|
||||||
|
errno == ETIMEDOUT))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
errno_assert (nbytes != -1);
|
errno_assert (nbytes != -1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user