[zeromq-dev] Assertion failed: err == WSAECONNREFUSED (tcp_connecter.cpp:119)

Raman Hrzheshkevich raman.hrzheshkevich at gmail.com
Thu Feb 4 17:28:20 CET 2010

Hi Martin, i'm getting this error when i can't connect to server( it's

113    int rc = getsockopt (s, SOL_SOCKET, SO_ERROR, (char*) &err, &len);
114    zmq_assert (rc == 0);
115    if (err != 0) {
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);

Could you fix this problem please ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100204/bca4b966/attachment.htm>

More information about the zeromq-dev mailing list