1

I have an http request that sometimes receives no response (timeout err0r). How should I handle this, perhaps reducing the original timeout and then repeating the request some number of times.

0

1 Answer 1

1

You can use setTimeout in the request.

Take a look at: http://nodejs.org/api/http.html#http_request_settimeout_timeout_callback

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.