[zeromq-dev] Forcefully drop a peer connection

Mike Owens mikeowens at gmail.com
Fri Jul 15 04:14:07 CEST 2011

I was testing sending random data to a ROUTER socket and ran into a
scenario I hadn't considered. What if the random data passed through
and is sent in to your socket for processing. Assuming your code can
detect this, and is able to tell at that point that the remote peer is
rogue, how can you (through the API) drop its connection? I have the
socket ID given by the ROUTER socket in the first message, but there
doesn't seem to be any way through the API to forcefully disconnect
that remote peer -- drop the connection. Or is there a way? Just
looking at the API reference, I can't seem to find anything that does


Mike Owens
마이크 오웬스

More information about the zeromq-dev mailing list