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

increase HTTP SEND/POST timeout to 5s #3971

Merged
merged 1 commit into from
Dec 16, 2017
Merged

increase HTTP SEND/POST timeout to 5s #3971

merged 1 commit into from
Dec 16, 2017

Conversation

d-a-v
Copy link
Collaborator

@d-a-v d-a-v commented Dec 14, 2017

#3699

I instrumented Parsing.cpp:readBytesWithTimeout() and found with my current ideal setup (the esp alone distant to 1 meter of the AP's antenna and PC on ethernet) that I have a maximum "tries" time of 1154ms (it is 99% less than 5ms but sometimes increased for a single packet to around 1 second).
I did not try to tcpdump though, but with a bigger timeout it just works.

I think it is not too expensive to increase the timeout to 5 seconds.

Copy link
Contributor

@caverna caverna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@d-a-v this commit is amazing!
It fixes a long issue that I've being experiencing with mid/big size html pages not being loading!

@devyte devyte merged commit 89e5a48 into esp8266:master Dec 16, 2017
@devyte
Copy link
Collaborator

devyte commented Dec 16, 2017

Since there is confirmed, merging.

@d-a-v d-a-v deleted the 3699 branch January 5, 2018 17:51
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

Successfully merging this pull request may close these issues.

3 participants