-
Notifications
You must be signed in to change notification settings - Fork 173
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
connections keep switching away from direct connection and switching back #2169
Comments
I suspect this is mostly because we have lossy ping/pongs:
|
this is a bit silly in a way, because we know there's a lot of traffic flowing around at this point. traffic which is being acked by quic in both directions. We only downgrade the connection because this pong is treated as more important somehow, and missing it forces downgrading our connection even if data is flowing over it. We might be able to improve this by not considering the loss of a pong so important if other data is flowing as well. |
Agreed. It seems sort of silly to decide that a connection is dead if we are literally getting UDP packets from that addr at the same time as we timeout on a pong. |
unfortunately still happening on
|
When receiving data via UDP, we were not extending the validity of the current `best_addr`. This would trigger expiry of the `best_addr`, even though it was actively being used. This fix, extends the validity, everytime we successfully receive a UDP packet on the current `best_addr`. Closes #2169
On slower connections we noticed we keep switching connections all the time. Even though we would expect them to stay direct. E.g. transcript from a modified
iroh doctor
:The text was updated successfully, but these errors were encountered: