[zeromq-dev] Duplicate identities - #325

Michel Pelletier pelletier.michel at gmail.com
Mon Mar 26 18:55:15 CEST 2012


Is it possible to provide both behaviors (reject, autoid) switched
with a socket option?

-Michel

On Mon, Mar 26, 2012 at 9:15 AM, Pieter Hintjens <ph at imatix.com> wrote:
> On Sat, Mar 24, 2012 at 10:59 AM, Chuck Remes <lists at chuckremes.com> wrote:
>
>> FYI, this patch was rejected by crossroads-io. They prefer it be handled by
>> closing the offending connection rather than silently allowing it to connect
>> but with an auto identity.
>
> The problem here is that the protocol is unable to report errors back.
> (We're running on an amateurish protocol, sadly.)
>
> So if you're facing a buggy client, you can't help it in any way.
> Closing the connection won't help (it'll just retry). Asserting in the
> server is pathological. Switching to an automatic identity isn't great
> either.
>
> If you're facing a hostile client, switching to an automatic identity
> is a decent strategy since it'll keep the client busy.
>
> -Pieter
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev



More information about the zeromq-dev mailing list