-
Notifications
You must be signed in to change notification settings - Fork 565
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
fix: handle undefined deref() of WeakRef(socket) #3751
fix: handle undefined deref() of WeakRef(socket) #3751
Conversation
I was looking for the unit-test file for |
As for integration and e2e tests, it is a little difficult to simulate this edge case. This is the environment in which this can happen:
The trigger for this happening is when there are 2 concurrent requests
How would this scenario happen in a real setting? What business value is there?
I have a 100% reproducible e2e scenario that can simulate it, but the endpoints and VPN belong to the company I work for, so not something I can share. I am open however to running any commands/diagnotics to extract any generic information. This pseudocode is as close as I can get to simulating this:
|
I have tested this
But am unable to figure why the |
Adding it into the The testing scenario you shared seems enough for an e2e testing. Feel free to use an HTTP server setup within the same testing scenario that mimics the possible network and server behaviour your are facing. |
Hello. i have a same issue. I hope the team merges quickly, it's already affecting my online products |
We are seeing this in prod as well semi frequently (happened 3 times in past 24 hours) |
* fix: handle undefined deref of weakref socket * exit early --------- Co-authored-by: Aras Abbasi <aras.abbasi@googlemail.com> (cherry picked from commit f98fbef)
* fix: handle undefined deref of weakref socket * exit early --------- Co-authored-by: Aras Abbasi <aras.abbasi@googlemail.com>
This relates to...
This is an issue introduced in
v6.20.0
where an undefinedsocket
value is passed toonConnectTimeout
causing aTypeError: Cannot read properties of undefined (reading 'autoSelectFamilyAttemptedAddresses')
.Rationale
This Pull request adds optional chaining to the
socket
input variable that can beundefined
.Changes
This Pull request adds optional chaining to the
socket
input variable that can beundefined
.Features
N/A
Bug Fixes
This Pull request adds optional chaining to the
socket
input variable that can beundefined
.Breaking Changes and Deprecations
N/A
Status