-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: add handshakeTimeout to Http2Adapter's ConnectionManager #2435
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
base: main
Are you sure you want to change the base?
feat: add handshakeTimeout to Http2Adapter's ConnectionManager #2435
Conversation
any updates? |
try { | ||
stream.outgoingMessages.add(DataStreamMessage(data)); | ||
} catch (_) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eventually, I got a StateError: Bad state: Cannot add event after closing
in Crashlytics. I can’t reproduce it locally — maybe it’s caused by some race condition, I’m not sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's revert until we have a clear path on how to reproduce and what we are fixing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, sure
Should I add a TODO?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly good to go.
try { | ||
stream.outgoingMessages.add(DataStreamMessage(data)); | ||
} catch (_) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's revert until we have a clear path on how to reproduce and what we are fixing.
Co-authored-by: Alex Li <[email protected]> Signed-off-by: Ivan Elizarov <[email protected]>
Code Coverage Report: Only Changed Files listed
Minimum allowed coverage is |
In some situations, like when ISP infrastructure is down or misconfigured, user may end up long-waiting for handshake to complete with further
HandshakeException
. In my case it was around 1 minute which is huge. This PR adds an optional paramhandshakeTimeout
toConnectionManager
that after all returns chains with this future in_RawSecureSocket
New Pull Request Checklist
main
branch to avoid conflicts (via merge from master or rebase)CHANGELOG.md
in the corresponding packageAdditional context and info (if any)