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

make_fdpair hangs trying to send large chunk of data #2638

Closed
0x0badc0de opened this issue Jul 30, 2017 · 3 comments
Closed

make_fdpair hangs trying to send large chunk of data #2638

0x0badc0de opened this issue Jul 30, 2017 · 3 comments

Comments

@0x0badc0de
Copy link

Faced this while using ZMQ under Wine on OS X. it just hangs on this line

nbytes = ::send (*w_, (char *) (dummy + dummy_size - still_to_send), still_to_send, 0);
trying to send 1MB into a socket.
Quick workaround:

$ sudo sysctl -w net.inet.tcp.sendspace=1300000
net.inet.tcp.sendspace: 131072 -> 1300000

But probably it would be better to make ZMQ working regardless of system buffer size. Let me know if any further details/debugging are required.

@bluca
Copy link
Member

bluca commented Jul 30, 2017

That is necessary to work around a Windows problem. Perhaps worth documenting that running Windows binaries on *nix needs at least a MB of TCP buffers.
Could you please send a PR to update the INSTALL file?

bluca added a commit to bluca/libzmq that referenced this issue Jul 31, 2017
Solution: document it in the INSTALL file
Fixes zeromq#2638
bluca added a commit to bluca/libzmq that referenced this issue Jul 31, 2017
Solution: document it in the INSTALL file
Fixes zeromq#2638
@0x0badc0de
Copy link
Author

Sorry for delay, I see you've already done some changes, thanks for that!

@bluca
Copy link
Member

bluca commented Aug 1, 2017

No problem - thanks for finding the workaround

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