| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@BridgeAR fixed follow your suggestions. |
Sorry, something went wrong.
There was a problem hiding this comment.
this is a break change, now timeout request will emit ERR_HTTP_SOCKET_TIMEOUT error if you don't handle the timeout event yourself.
Sorry, something went wrong.
|
@nodejs/http This could use some reviews. |
Sorry, something went wrong.
|
@nodejs/http bump.... 🔉 |
Sorry, something went wrong.
|
@nodejs/http @nodejs/http2 @nodejs/streams @ronag this could use some reviews. It should probably be reviewed in general idea wise before we ask for a rebase, since it took so long to look at this again. |
Sorry, something went wrong.
There was a problem hiding this comment.
This require a doc update, as our documentation for req.setTimeout states that
Emitted when the underlying socket times out from inactivity. This only notifies that the socket has been idle. The request must be aborted manually.
Sorry, something went wrong.
There was a problem hiding this comment.
I think this should be ERR_HTTP_SOCKET_TIMEOUT, as this is triggered by http.
Sorry, something went wrong.
Agent must destroy timeout socket when there is no any timeout handler. Avoid socket hang on forever when the server don't send any response back.
| (reason phrase). | ||
|
|
||
| <a id="ERR_HTTP_SOCKET_TIMEOUT"></a> | ||
| ### ERR_HTTP_SOCKET_TIMEOUT |
There was a problem hiding this comment.
@mcollina change to ERR_HTTP_SOCKET_TIMEOUT and add update on request.setTimeout().
Sorry, something went wrong.
| agent.removeSocket(s, options); | ||
| debug('CLIENT active socket destroy'); | ||
| } | ||
| } |
There was a problem hiding this comment.
I think just doing:
s.destroy(new ERR_HTTP_SOCKET_TIMEOUT());should be enough now in master
Sorry, something went wrong.
|
@fengmk2 My opinion here as matured a bit given recent changes. I would be more positive to this PR. Would you still be interested in sorting out the conflicts and comments? |
Sorry, something went wrong.
|
This seems to have been come stale. I'm closing it in favor of #33177 in order to try and land this change. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Agent must destroy timeout socket when there is no any timeout
handler. Avoid socket hang on forever when the server don't send
any response back.
Checklist