Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout in httpRequest #14

Open
mattbrain opened this issue Sep 27, 2016 · 0 comments
Open

Timeout in httpRequest #14

mattbrain opened this issue Sep 27, 2016 · 0 comments

Comments

@mattbrain
Copy link

I came across a minor bug when using this on a relatively low powered RPi. When discovering a service of which there were many instances, the http.request was throwing a timeout and ultimately crashing as the server (which was hosting all these services) failed to respond quickly enough.

To overcome it I increased the timeout in req.setTimeout by a factor of 10, but i'm sure there is a more elegant way of handling this situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant