Added test case for issue 566

* Tests dealer-to-router connection 100 times
* This was failing in ZMQ v4.0.0 RC1
This commit is contained in:
Pieter Hintjens
2013-09-26 14:18:40 +02:00
parent 5271bc9db3
commit e42a0a4074
4 changed files with 90 additions and 2 deletions

View File

@@ -739,7 +739,7 @@ int zmq::stream_engine_t::write (const void *data_, size_t size_)
// we'll get an error (this may happen during the speculative write).
if (nbytes == SOCKET_ERROR && WSAGetLastError () == WSAEWOULDBLOCK)
return 0;
// Signalise peer failure.
if (nbytes == SOCKET_ERROR && (
WSAGetLastError () == WSAENETDOWN ||