[zeromq-dev] ZMQ occupies random TCP ports on Windows

Brad LaFountain blafountain at gmail.com
Wed Sep 28 17:30:47 CEST 2011


WaitForMultipleObjects only supports 64 (MAXIMUM_WAIT_OBJECTS) handles.

 - brad

On Wed, Sep 28, 2011 at 11:28 AM, Steven McCoy <steven.mccoy at miru.hk> wrote:

> On 28 September 2011 11:26, Martin Sustrik <sustrik at 250bpm.com> wrote:
>
>> On 09/28/2011 05:21 PM, Steven McCoy wrote:
>>
>>  Should I try re-writing everything to use Windows events /semaphores/
>>> and WSA wait API?
>>>
>>
>> The problem is that I/O threads have to wait for sockets (TCP connections
>> and alike) and signaler (internal commands) at the same time.
>>
>> Thus, if the signaler is implemented using an event, you would need a
>> function to poll on both events and sockets.
>>
>> AFAIK select() doesn't support that kind of thing. Which brings us back to
>> the IOCP discussion :|
>>
>>
> You can promote sockets to handles but not the other way, which means it
> might be possible to swap around underneath the 0mq API.
>
> --
> Steve-o
>
> _______________________________________________
> 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/20110928/a582a584/attachment.htm>


More information about the zeromq-dev mailing list