I think the API should be designed to prevent user from misusing. On Thu, Jul 28, 2011 at 9:17 PM, Ian Barber <[email protected]> wrote:
> On Thu, Jul 28, 2011 at 2:03 PM, Pieter Hintjens <[email protected]> wrote: > >> > You could validly do both, e.g. bind() set HWM, connect to a second >> source, >> > set another HWM, connect to another, so no way of telling. >> >> That's always been the argument for not checking, but is that actually >> used, ever? >> >> -Pieter > > > Yeah, well at least I've seen it with XREPs going to different types, > primarily when there's a local control channel over IPC and other stuff > going over tcp. There is scope for bindings to provide different interfaces > though, for example have the socket constructor take HWM as an argument or > similar (though it should probably encourage setting a LWM as well, which is > somewhat underused afaics). > > Ian > > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
