-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Implement test-tls-connect-timeout-option.js #19503
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
Conversation
src/js/node/net.ts
Outdated
| } | ||
| this._handle?.timeout(Math.ceil(timeout / 1000)); | ||
| this.timeout = timeout; | ||
| this._timeout = timeout; |
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.
Actually this is wrong should be this.timeout because nodejs will do this.timeout = msecs; in setStreamTimeout https://github.com/nodejs/node/blob/main/lib/internal/stream_base_commons.js#L236-L243
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.
Test failures
|
Converting to draft for now |
What does this PR do?
How did you verify your code works?
Test added and passes. Some of this feels like a bandaid so would be useful to get some insights about potentially better ways to implement this.