-
Notifications
You must be signed in to change notification settings - Fork 505
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
Spawning ~20 requests at a time results in a ZMQError #408
Comments
I see this one a ton, jupyter recovers from it but voila does not |
I'll investigate a bit on this. I'll check where zmq ports are chosen, see if I can see why we chose already used addresses. I wonder if it's not done in nbconvert. |
Ok. So actually it seems to me that the logic is wrong in Binding to port |
@martinRenou Any suggestions for how to do it in a more robust manner? |
I don't know the jupyter_client internals enough... So I don't have any suggestion right now. |
@minrk Do you have an idea on this? Would it be feasible to give responsibility to the kernel for choosing available ports? Instead of choosing those ports at the creation of the connection file? |
A pseudo-fix would be to put the logic for choosing ports in voila directly, and keep a Python Voila would prevent two kernels to have the same port, but it would not prevent another application to take one of those ports. It would only reduce the probability to have this issue. |
If this is a |
(or rather, this issue can be for tracking us making sure voila handles the failure gracefully) |
Yes, @JohanMabille is working on writing a proper issue in I am also currently working a the pseudo-fix/workaround for Voila. I guess we can close this issue when the workaround is in. |
Actually I will do the workaround directly in |
Thanks @martinRenou for looking into this 👍 |
do you mean as a server extension? And which OS? |
Running
ab -n 50 -c 20 http://localhost:8866/
eventually results in:The text was updated successfully, but these errors were encountered: