[zeromq-dev] How to disconnect a peer?
Goswin von Brederlow
goswin-v-b at web.de
Mon Sep 1 14:35:19 CEST 2014
That doesn't answere my question though. I want to realy cut the peers
connection and free all its resources.
On Thu, Aug 28, 2014 at 07:18:11PM +0200, Pieter Hintjens wrote:
> My usual strategy is to delete the peer after some timeout, and if the
> peer returns, then treat it as a new peer. Secondly, treat an
> out-of-order message as an error so that the client side can
> re-initialize itself correctly. As example, see FILEMQ.
>
> On Thu, Aug 28, 2014 at 5:33 PM, Goswin von Brederlow <goswin-v-b at web.de> wrote:
> > How do I disconnect a single peer from a ROUTER socket?
> >
> > The closest in the API seems to be zmq_disconnect(). But a) I didn't
> > connect to the peer, the peer connected to me, and b) I don't have an
> > endpoint, only a peer identity.
> >
> > And I can't tell the peer to disconnect since it is unresponsive.
> >
> >
> > Is that something that should be there but is missing?
> >
> > MfG
> > Goswin
More information about the zeromq-dev
mailing list