-
Notifications
You must be signed in to change notification settings - Fork 184
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
firefox connections last ten minutes #1803
Comments
Can you describe your setup? |
Hmm. It's possible that I was not using a new enough build of freedom-for-firefox, and didn't have your fix for the very similar behavior we'd observed previously. I'll test again with the next cut. |
Yeah, I''m browsing here with Simple SOCKS on Firefox and don't see any issues...a pretty beefy machine admittedly but, still. I'll continue browsing with it, see how it goes... |
Hmm, correction: I am seeing my Firefox proxy die after ~5-10 minutes browsing. Trying to figure out what's happening...looks like I see heartbeat failures, then of course it self-terminates. |
I don't know yet what's happening...nothing sticks out to me from the logs. If I had to guess, I'd say there's still some slowdown when there's large numbers of open TCP sockets -- this may happen when actually browsing with the proxy using an actual browser, as a browser typically tries to re-use proxy connections, keeping them open for potentially a long time. |
FYI, I only see this with churn. |
EDIT: Moved previous hypothesis to #1830. Current best thinking from Mozilla is that this is actually a PMTU Discovery bug in usrsctplib. Firefox operates with PMTUD enabled. Detailed tracing shows that something causes packet sizes to start growing, and once a packet reaches 1464 bytes, it can never be received. This is running through CHURN, which interferes with PMTUD because usrsctplib's implementation is ICMP-based. There is a patch to disable PMTUD under review at https://bugzilla.mozilla.org/show_bug.cgi?id=1194817. |
It looks like this was only showing on localhost-only tests because FF40 and lower were truncating all packets at 1500 bytes. This is fixed in FF41, so we should make sure to test on real networks even if things appear to be working on localhost. |
So, you're saying we should incorporate MTU into our tests to prevent false positives on FF 41+? |
Sure, that would be a good way to go. |
OK, I've re-opened this issue to track adding MTU to some script we run regularly, e.g. |
So, to summarise:
Do you agree, @bemasc? |
OK! |
The underlying Firefox issue has been approved to be merged into Beta, so it will land in stable on Sept. 22. With the heartbeat timeout change and auto-reconnect (#1836) to mitigate the severity of this issue, I think we've done enough. |
Amazing work! 💯 * 💯 |
Currently, it seems like Firefox (as client) may get bogged down, and eventually disconnect, when in heavy use (i.e. loading several pages simultaneously). More investigation is needed to determine whether this problem is reproducible.
The text was updated successfully, but these errors were encountered: