0

There's very little documentation and reasoning on how to handle and set http timeouts in express.

I think they can be set via:

req.connection.setTimeout(600000);

Update: I got this working to set it, confirmed.

But after this limit, the server comes back with "No data received". I tried this module express-timeout and it didn't work.

Ideas?

1 Answer 1

3

What behavior do you want when timeout is exceeded?

Here's the documentation for timeout: http://www.senchalabs.org/connect/timeout.html

Are you sure you don't want something like sockets.io that would enable connections to be kept alive and reinitiated as needed?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.