-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bugfix/esp8266 http client #6176
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
9600f3e
Got tools/mklittlefs/mklittlefs after submodule update --init
b42f5a4
Solve HTTP1.1 persistance issue #6152
2bc8695
Merge branch 'master' into bugfix/ESP8266HTTPClient
8fc039d
fix checking the header
d532476
Merge branch 'master' of https://github.com/esp8266/Arduino
6cc3c60
Merge branch 'master' into bugfix/ESP8266HTTPClient
f382aa6
Let reuse connection depend on protocol used: HTTP1.0 or HTTP1.1
ed06407
Merge branch 'master' into bugfix/ESP8266HTTPClient
d45fe30
Merge branch 'master' of https://github.com/esp8266/Arduino
cd7d7d5
Merge branch 'master' into bugfix/ESP8266HTTPClient
9bd99ca
Merge remote-tracking branch 'origin/bugfix/ESP8266HTTPClient' into b…
51dd084
Removed tools/mklittlefs/mklittlefs
9ea6c69
Merge branch 'master' into bugfix/ESP8266HTTPClient
9fb5c4c
Merge branch 'master' of https://github.com/esp8266/Arduino
952c9b7
Merge branch 'master' into bugfix/ESP8266HTTPClient
7dba2f4
Fixed reuse, added null ptr checks
cf4a476
Merge branch 'bugfix/ESP8266HTTPClient' of https://github.com/Jeroen8…
b3a36b4
Removed space to pass Travis tests
37b62a4
Merge branch 'master' of https://github.com/esp8266/Arduino
910f033
Merge branch 'master' into bugfix/ESP8266HTTPClient
a558240
Fix bug reusing connection. ::handleHeaderResponse() did not clear _p…
1d13fec
Merge branch 'master' of https://github.com/esp8266/Arduino
afc51c5
Merge branch 'master' into bugfix/ESP8266HTTPClient
0e3c92f
Varios changes
293c68c
Restore ::disconnect() default parameter to false
96ecd06
Merge branch 'master' of https://github.com/esp8266/Arduino
84ef3d3
Merge branch 'master' into bugfix/ESP8266HTTPClient
82affca
Add return false in case of oom
aeb8f3e
Merge branch 'master' into bugfix/ESP8266HTTPClient
d-a-v File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this method and
::setReuse()
it is possible to setuseHTTP10 = true
and_reuse=true
. That is the user shooting themselves in the foot, which is not a high prio for me.At some point might want to go back and see if
useHTTP10 === !reuse
(I think so after reading the code briefly) and then drop one or the other variable if that's true. But for this PR, I'm OK.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@earlephilhower for HTTP/1.0 the default is not reusing the connection, the default for HTTP/1.1 is reusing. However reusing is allowed also on HTTP/1.0. In this case the client must send a Connection: Keep-Alive request header. The server may respond with a Connection: Keep-Alive in which case the connection can be reused. In HTTP/1.1 the client may send a connection: Keep-Alive header, but this is not obligatory. The connection is supposed to be reused unless the server sends a connection: close response header.
This is exactly what ESP8266HTTPClient does