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
Run out of ports when 65000+ messages are sent via 65000+ threads #520
Comments
|
Spawning so many OS threads is likely to be counterproductive. Regardless, you can solve your problem by calling |
I don't think |
#523 - PR with a fix |
|
@Bogdanp - isn't closing a connection for every message sent a very sub-optimal way of handling this issue? The problem stems from Pika connections not being thread safe. Hence in my PR i am creating a pool of connections (one per publisher thread), that way the number of Pika connections that dramatiq opens will almost remain a constant (limited by TCP/IP state management) |
Issues
GitHub issues are for bugs. If you have questions, please ask them on the discussion board.
Checklist
What OS are you using?
Happens both on Ubuntu 16.04 or macOS 10.13.3
What version of Dramatiq are you using?
1.13.0
What did you do?
Tried to create 65000+ threads and send one message per thread
What did you expect would happen?
Messages to be dispatched without any error
What happened?
Got an exception - OSError98/99
The text was updated successfully, but these errors were encountered: