-
Notifications
You must be signed in to change notification settings - Fork 66
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
Sending takes to long #7
Comments
Let's find out! =) |
@TimonPost and I tracked it down to a lock being hold too long here:
Scoping it resolves it:
However, we do not know why wrapping_add was causing the issue. It takes ownership when used, and we suspect that is related. We're going to leave this issue open until we know the root cause, but we'll push a fix in the meantime. |
So serialization takes too long and the lock guard isn't dropped beforehand? |
I see this is just part of the solution when sending about ten packets the same problem will still occure. Int the PR is an suggestion to fix this. I am going to try that out. |
This will be fixed in #5 |
This should be resolved now with #9. I'm going to open another issue for more rigorous testing, though, and close this one. |
So when @torkleyy and I where adding examples we noticed some huge delays.
I did some tests to monitor how long it took to send a message and it took 1 second. So there is some bug somewhere :)
test results:
So you can see that messages take about 1 second to be processed when by the
send
method.After debugging I found that
create_connection_if_not_exists
method takes 0.5 - 0.9 seconds to execute.Where after I found out that acquiring the lock on
connections
is taking to long increate_connection_if_not_exists
method.Why does acquiring the lock takes so long?
The text was updated successfully, but these errors were encountered: