socket hang up after 5000ms #2119
indolent-developer
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi I am using got library and facing some issue. We are getting socket hangup after a time of 500ms. Do we know what can cause this behavior. The application logs show request leaving client service but the server service doesn't show any request received.
Can got have a timeout where it resets connection automatically?
some sample code
const { body, statusCode, headers, } = await got(url, {
headers: {
'Keep-Alive': 'timeout=10, max=100',
...requestHeaders,
},
Beta Was this translation helpful? Give feedback.
All reactions