Unverified Commit bba500d0 authored by killagu's avatar killagu Committed by Michaël Zasso
Browse files

http: fix request with option timeout and agent

When request with both timeout and agent, timeout not
work. This patch will fix it, socket timeout will set
to request timeout before socket is connected, and
socket timeout will reset to agent timeout after
response end.

Fixes: https://github.com/nodejs/node/issues/21185

PR-URL: https://github.com/nodejs/node/pull/21204


Reviewed-By: default avatarKhaidi Chu <i@2333.moe>
Reviewed-By: default avatarMatteo Collina <matteo.collina@gmail.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarUjjwal Sharma <usharma1998@gmail.com>
parent 3d93273b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment