[zeromq-dev] tcp_socket assertion after client disconnects

Ferenc Szalai szferi at wsbricks.com
Fri Jun 12 22:21:43 CEST 2009


Hi

I just started to play with routing branch. I used the application (zrr, 
zprr) attached to the following mail:

http://lists.zeromq.org/pipermail/zeromq-dev/2009-May/000775.html

The server creates this assertion after one client disconnects:

zrr: tcp_socket.cpp:349: void zmq::tcp_socket_t::blocking_read(void*, 
int): Assertion `n >= 0' failed.
Aborted

I added the 'always true' error handler to the code:

bool error_handler(const char *s)
{
     return true;
}

int main(..)
     set_error_handler(error_handler)
[...]

but I got the same assertion.

What does this assertion means and how can I keep my server alive after 
one client disconnects?

--
Regards
Ferenc



More information about the zeromq-dev mailing list