| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
| this._securePending = false; | ||
| this._newSessionPending = false; | ||
| this._controlReleased = false; | ||
| this.secureConnecting = true; |
There was a problem hiding this comment.
This is never set to false on client sockets.
So if Http2Session constructor (in lib/internal/http2/core.js) is called after secureConnect is emitted, then secureConnecting is still true but it'll end up never calling setupHandle and connect will never be emitted.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
As @murgatroid99 points out in #32922, a connection may have its connecting property set to true, while TLS is still connecting. This results in setupFn() being fired before the connection is actually ready.
This PR introduces the property secureConnecting on TLSSocket, which will not be set to true until the secureConnection event is emitted.
Fixes: #32922
Checklist