Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

What happens if we do not set timeout in setting? #423

Closed
yalamber opened this Issue · 4 comments

5 participants

@yalamber

what happens if i do not put timeout , what is default time out interval?

@umutm

If I'm not wrong, the default http client timeout value is 60 secs.

@jamc

What if is a streaming?

"ACCEPT" : "text/event-stream"

Does the timeout applies? How does this works?

Thanks!

@mikeal
Owner

default is implemented by core.

@mikeal mikeal closed this
@tongxiang

Just stumbled on this now. Not sure about a year ago, but it looks like the Node.js native http library (which Request uses) actually specifies a default timeout of 120000 ms (or 2 minutes.)

server.timeout#
Number Default = 120000 (2 minutes)
The number of milliseconds of inactivity before a socket is presumed to have timed out.

Note that the socket timeout logic is set up on connection, so changing this value only affects new connections to the server, not any existing connections.

Set to 0 to disable any kind of automatic timeout behavior on incoming connections.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.