[zeromq-dev] general question about connect before bind
Martin Sustrik
sustrik at 250bpm.com
Tue Nov 23 16:31:57 CET 2010
Hi Koert,
> Having used zeromq in a few small applications I now am used to the
> behavior that it typically doesn’t matter if a connect happens before a
> bind. It is great. However how does it work?
>
> If say I have a server on machine 101 and a client on 201, and my
> protocol is tcp, how can the client connect before the server has done
> the bind to the endpoint? I mean, I assume the bind opens a tcp port or
> something like that, so before that the client’s request for connection
> should be refused, no?
The connecting site tries to reconnect in periodic intervals. Once the
other side binds, connect succeeds.
Martin
More information about the zeromq-dev
mailing list