-
Notifications
You must be signed in to change notification settings - Fork 485
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
Router/Dealer Pattern facing unnecessary delay during multiple connections #987
Comments
Did you try with Epsilon: A No-Op Garbage Collector ? |
@fbacchella I have been using this Thanks in advance |
Context and sockets are created in the while loop, so every thing is new. I rather look at low level problems like socket exhaustion. |
@fbacchella i forgot to mention that those upsurges started after the fourth/third time not exactly after many reconnections to conclude and say that socket exhaustion is the problem. Are y sure about that? Any other clue? |
I ran you code, there is a few hiccups of about 100-200ms, but not a lot. |
@fbacchella Things become even worse when i try localhost on a different machine just with one client. Here is the server Router part:
Here is the client Dealer's part
|
I am using the Jer0mq server socket model and specifically the router dealer pattern because I want to validate the identity of the clients. My problem is that I notice random upsurge spikes of 500 ms when I use a loop case where the server binds the socket and the client tries to connect. From negligible delays up to 500 ms delay, why is this happening? how can I avoid such latency? is this possible? What am I doing wrong? Here is my simple code to test it.
The text was updated successfully, but these errors were encountered: