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

PUSH socket overflows #150

Open
cc32d9 opened this issue Mar 21, 2019 · 2 comments
Open

PUSH socket overflows #150

cc32d9 opened this issue Mar 21, 2019 · 2 comments

Comments

@cc32d9
Copy link

cc32d9 commented Mar 21, 2019

I'm developing this module using AZMQ, and it doesn't go well:
https://github.com/EOSChronicleProject/eos-chronicle/blob/81dbe977a264fcf674d95ef941a5479ef30f78bc/chronicle-receiver/exp_zmq_plugin.cpp

the data is written quite intensively with async_send, and it's not limited by high watermark like the synchronous socket would do. If there's no recipient attaching to that socket, the sender keeps sending endlessly. As soon as the recipient connects to the socket, the sender bails out with "Cannot allocate memory" exception.

Why is it not limited by HWM? I would assume it should do it like the traditional ZMQ library does.

@rodgert
Copy link

rodgert commented Apr 22, 2019

Is there any chance I could get a minimal reproduction case?

@cc32d9
Copy link
Author

cc32d9 commented Apr 22, 2019

well in the meanwhile I dropped the idea of supporting ZMQ, and now using websockets only.

But the reproduction case should be quite easy to build, just send to ASMQ socket in an endless loop and you will see it.

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