Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failed: fds.size () <= FD_SETSIZE #109

Closed
jhawk28 opened this issue Oct 29, 2010 · 2 comments
Closed

Assertion failed: fds.size () <= FD_SETSIZE #109

jhawk28 opened this issue Oct 29, 2010 · 2 comments

Comments

@jhawk28
Copy link

jhawk28 commented Oct 29, 2010

When I create a bunch of connections very quickly, I get the following assertion:
Assertion failed: fds.size () <= FD_SETSIZE (\zeromq2\src\select.cpp:67)

Example code:
for (int i = 0; i < 50; i++)
{
ZMQ.Socket socket = ctx.socket(ZMQ.PUSH);
socket.connect("tcp://localhost:5000");
socket.send(("" + i).getBytes(), 0);
socket.close();
}

See: http://gist.github.com/654077 for fully working test case

@sustrik
Copy link
Member

sustrik commented Oct 30, 2010

It's windows limit of 64 file descriptors per pollset. Define FD_SETSIZE to something more reasonable and recompile 0MQ.

@jhawk28
Copy link
Author

jhawk28 commented Oct 30, 2010

Ok, thanks.

benjdero pushed a commit to benjdero/libzmq that referenced this issue Feb 20, 2023
Removed FileMQ support from libzre
bluca pushed a commit that referenced this issue Oct 31, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants