[zeromq-dev] zero MQ 2.0 app remote shutdown when probing port with nmap.

Frank Denis zeromq at pureftpd.org
Mon Sep 14 11:56:26 CEST 2009

Le Mon, Sep 14, 2009 at 11:46:30AM +0200, Skrzyniarz Alexandre ecrivait :
> Hello.
> Probing a port used by a zmq application causes application shutdown:
> ./local_lat lo:5555 1 1
> nmap -p 5555 -P0 localhost
> --->
> Assertion failed: false (zmq_listener_init.cpp:95)
> Aborted

  Is it on FreeBSD?
  This is typical of FreeBSD, that doesn't return return an error in
accept() but doesn't fill the sockaddr structure either.

  So you need to check that the protocol (in the structure) is valid before
considering that the socket is useable.

Frank Denis - j [at] pureftpd.org - http://00f.net - http://www.cotery.com

More information about the zeromq-dev mailing list