HttpClient
HttpClient copied to clipboard
Timeouts / Hanging
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.