[zeromq-dev] Assertion failed: err == WSAECONNREFUSED (tcp_connecter.cpp:119)
Martin Sustrik
sustrik at 250bpm.com
Thu Feb 4 17:48:12 CET 2010
Hi Raman,
> Hi Martin, i'm getting this error when i can't connect to server( it's unavailable).
>
> 113 int rc = getsockopt (s, SOL_SOCKET, SO_ERROR, (char*) &err, &len);
> 114 zmq_assert (rc == 0);
>
> 115 if (err != 0) {
> 116
> 117 // Assert that the error was caused by the networking problems
> 118 // rather than 0MQ bug.
> 119 zmq_assert (err == WSAECONNREFUSED);
>
> errno = err;
>
> return retired_fd;
> }
>
>
> in this case "err" is equals to 10060(WSAETIMEDOUT).
>
> Before i get WSAETIMEDOUT, WSAECONNREFUSED error occurs several times, but it's handled by
> zmq_assert (err == WSAECONNREFUSED);
Ok, try the current trunk. It should be fixed.
Thanks for reporting the problem!
Martin
More information about the zeromq-dev
mailing list