[zeromq-dev] [PATCH] FD_SETSIZE increased for win32

Pieter Hintjens ph at imatix.com
Wed Nov 3 12:21:33 CET 2010


On Wed, Nov 3, 2010 at 12:16 PM, Pieter Hintjens <ph at imatix.com> wrote:

> https://github.com/zeromq/zeromq2/issues#issue/57
>
> Note that this will not take effect until inclusion of winsock2.h is
> removed from zmq.h, for which I'll raise a separate issue.

Actually, on consideration the use of winsock2. in zmq.h doesn't have
any relation to this fix.  The core zmq classes will happily now work
with up to 1024 sockets on Windows.  However any application including
zmq.h will find itself getting FD_SETSIZE set to 64.

I've logged this issue here: https://github.com/zeromq/zeromq2/issues/issue/110

Anyone with a moment to spare and a Windows box may wish to experiment
with higher values than 1024 (which were good for 1999 or so).  I'll
run some tests of my own this weekend when I get access to a Windows
workstation.

-Pieter



More information about the zeromq-dev mailing list