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

Timeouts / Hanging #5

Open
errordeveloper opened this issue Feb 17, 2013 · 1 comment
Open

Timeouts / Hanging #5

errordeveloper opened this issue Feb 17, 2013 · 1 comment

Comments

@errordeveloper
Copy link

This has been reported cosm/cosm-arduino#2 and needs verifying.

@sarelvdwalt:

It seems that when hitting the code block: "int ret = cosmclient.put(feed, cosmKey);" there is a hang in the library. For me it occurs at ramdom, but generally if I have network problems or when my network is really busy (on my DSL router). When the hang occurs, it fails to time out, thus hanging up the entire application - a reboot of the Arduino is needed to break the hang.

@errordeveloper:

Firstly we will need to know the exact hardware you are using.

@manosv:

I think its not a "real" hung,it waits a long time for a reply from the server and if that does not happen for some reason the program just halts at that state.It happened to me.I solved by editing the library not to retrieve the code

@errordeveloper:

@manosv, do you think it's more likely to be a bug in amcewen/HttpClient?

@manosv:

Most probably in my opinion.

@oddstr13
Copy link

I'm seeing this behavior when attempting to make a request while Ethernet is in disconnected link state.

The delay is 2× .httpResponseTimeout(), which defaults to 30s and does not get set by .setTimeout().

Still present in the forked official version 0.6.1, but easily worked around with a call to .setHttpResponseTimeout to lower the timeout.

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

2 participants