[zeromq-dev] Using ephemeral port with signaler (Windows/Mono)
Doron Somech
somdoron at gmail.com
Wed Sep 3 14:08:46 CEST 2014
Thanks, I hoped to hear that.
I'm changing NetMQ to use ephemeral port, I think zeromq can benefit from
the change as well leading to better performance in creating sockets
because mutex is not used (no kernel call and no blocking on multiple
sockets creation).
On Wed, Sep 3, 2014 at 2:46 PM, Pieter Hintjens <ph at imatix.com> wrote:
> Afaik there was no specific reason to use a fixed port.
>
> On Wed, Sep 3, 2014 at 10:52 AM, Doron Somech <somdoron at gmail.com> wrote:
> > Hi All,
> >
> > In NetMQ there is a problem with the Signaler class
> > (https://github.com/zeromq/libzmq/blob/master/src/signaler.cpp) running
> on
> > Linux with Mono, the issue it that from time to time the fixed port is
> > already in use, although mutex is used (this only happen on Linix).
> >
> > I want to solve it by using ephemeral port on the Signaler instead of fix
> > port (it will also make create sockets cheaper because no mutex is
> needed),
> > I also see that in zeromq4 that is an option in the signaler
> implementation,
> > however the option is not used because in the config file the
> signaler_port
> > is not set to 0.
> >
> > Before making the change I want to know if there is a reason not to do
> it? I
> > guess zeromq didn't use it for a reason? Can I exhaust the available
> ports?
> >
> > Any help will be appreciated,
> >
> > Doron
> >
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140903/394efa6a/attachment.htm>
More information about the zeromq-dev
mailing list