Skip to content

Conversation

@kennethaasan
Copy link

@kennethaasan kennethaasan commented Nov 24, 2019

This PR is using the native Node way to set a timeout on a request:
https://nodejs.org/api/http.html#http_request_settimeout_timeout_callback

I've been seeing a lot of weird socket hang up errors when using node_fetch on requests that are reaching the timeout I set. I'm using an agent with keep alive on. I'm wondering if this might be the reason.

Similar issue in axios:
axios/axios#1752
https://github.com/axios/axios/blob/master/lib/adapters/http.js#L250-L261

@kennethaasan kennethaasan marked this pull request as ready for review November 24, 2019 17:52
xxczaki added a commit that referenced this pull request Jan 12, 2020
@xxczaki
Copy link
Member

xxczaki commented Jan 12, 2020

Closed in favor of #719

@xxczaki xxczaki closed this Jan 12, 2020
@kennethaasan kennethaasan deleted the timeout-socket-hang-up branch January 13, 2020 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants