We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With the current implementation I can't get hold of the socket and set a timeout before the proxy connection to the final endpoint has succeeded.
The following code doesn't work because the 'socket' event is emitted too late
req.on('socket', function(socket) { socket.setTimeout(5000); });
This doesn't work either as node's http client propagates the request's setTimeout either after 'connect' or after 'socket' depending on the situation
req.setTimeout(5000);
The text was updated successfully, but these errors were encountered:
For clarification, how would you do this without using a custom agent object?
agent
Sorry, something went wrong.
Destroy socket on failure to TLS-upgrade (TooTallNate#1)
4050a11
Signed-off-by: Kris Adler <[email protected]>
No branches or pull requests
With the current implementation I can't get hold of the socket and set a timeout before the proxy connection to the final endpoint has succeeded.
The following code doesn't work because the 'socket' event is emitted too late
This doesn't work either as node's http client propagates the request's setTimeout either after 'connect' or after 'socket' depending on the situation
The text was updated successfully, but these errors were encountered: