Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ESP8266HTTPClient without timeout #1520

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

Closed
platenyponchet opened this issue Jan 27, 2016 · 3 comments
Closed

ESP8266HTTPClient without timeout #1520

platenyponchet opened this issue Jan 27, 2016 · 3 comments

Comments

@platenyponchet
Copy link

Why there is no timeout on handleHeaderResponse method? My code does simple POST calls and stuck sometimes waiting for a response that never comes.

@platenyponchet
Copy link
Author

Thanks for the answer! I'll enable debug later.
Is it possible to happen a situation in which he lost the response (internet access fails) and stays stuck like below, always connected?
_tcp->available() == 0
_tcp->connected() == 1

@Links2004
Copy link
Collaborator

if internet access fails connected will return false.
if not there is a problem in WiFiClient or SDK.

the condition you note is may possible when the server never send anything and keeps the connection open.
but no normal http server will do that, adding a additional time out for this case is possible.
the debug will give us more info.

Links2004 added a commit to Links2004/Arduino that referenced this issue Jan 29, 2016
@igrr igrr closed this as completed Mar 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants