[zeromq-dev] Patch for resolve_nic_name to get out as soon as it finds the first match

Chris Wong chris at chriswongstudio.com
Sat Mar 6 15:43:41 CET 2010


Sure. I'm submitting all three patches in MIT license

On Mar 6, 2010, at 6:43 AM, Martin Sustrik <sustrik at 250bpm.com> wrote:

> Chris,
>
> Thanks for the patches! Can you resubmit it under MIT license? The  
> MIT licensing applies to 0MQ core (see licensing section on the web  
> site) - which is the case here - while the language bindings have  
> different licenses depending on the licensing model their authors  
> have chosen.
>
> Martin
>
> Chris Wong wrote:
>> While debugging the bind failure on Mac OS X, I stumbled across the
>> code in resolve_nic_name  where it's not breaking out of the for loop
>> upon the first match.  Here is a patch to fix that up... unless
>> getting the last match is the intention.  I'm not even sure that
>> there is any guaranteed ordering returned by getifaddrs.
>



More information about the zeromq-dev mailing list