On Jan 4, 2012, at 7:21 AM, Martin Sustrik wrote: > Hi Chuck, > >> This is on OSX. I have the open file limit set to 400k. I have >> modified src/config.hpp MAX_SOCKETS to be 51200. I get this assertion >> after opening around 2800 0mq sockets and closing 1500 of them, so I >> am *nowhere near* the FD limit or the max socket limit. > > That's strange. 2800 sockets should use 5600 fds for socketpairs + the > fds for the actual connections etc.
That's what I thought too which leads me to think this might be a side effect of something else. >> Any suggestions on a printf I could add to the library to help narrow >> down the cause of this? > > src/signaler.cpp:329 What elements should I printf? Is the +sv+ variable important? What values should it have (or not have)? Is there a way to print the total number of FDs in use at that point in time? That is, can I add a counter ivar to the class and increment it in that function? cr _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
