[zeromq-dev] hitting file descriptor using gevent

Martin Sustrik sustrik at 250bpm.com
Mon Jul 11 07:34:35 CEST 2011


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.

Martin



More information about the zeromq-dev mailing list