[zeromq-dev] hitting file descriptor using gevent

Tim Cooijmans timcooijmans at gmail.com
Mon Jul 11 11:57:31 CEST 2011

It does sound more reasonable, yes. I'm still doubting whether a single PUSH
PULL socket per process for sending and another socket (either PUB SUB or
normal TCP) for confirmation wouldn't be a better option. Making thousands
of connections between the same endpoints feels like a stupid thing to do.


-----Original Message-----
From: Martin Sustrik [mailto:sustrik at 250bpm.com]
Sent: maandag 11 juli 2011 7:35
To: ZeroMQ development list
Cc: Tim Cooijmans
Subject: Re: [zeromq-dev] hitting file descriptor using gevent

On 07/10/2011 05:19 PM, Tim Cooijmans wrote:

> This was all the code I was using. When I'm only creating a single 
> context and pre-allocating sockets as you suggested, I'm hitting the 
> limit at 300. Which seems logical given the 1024 limit.

Pair of 0MQ sockets with a single TCP connection between them consumer 3
file descriptors on each peer. One for the TCP socket itself, two for the
socketpair used by the 0MQ socket for internal eventing.

1024/3 = 341. That sounds more reasonable than 70.


More information about the zeromq-dev mailing list