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

Fix reuse for different URIs in HTTPClient::begin #8466

Merged
merged 2 commits into from
Mar 30, 2022
Merged

Fix reuse for different URIs in HTTPClient::begin #8466

merged 2 commits into from
Mar 30, 2022

Conversation

paulocsanz
Copy link
Contributor

Fixes #8331

The problem is that _canReuse was not reset in begin, like in HTTPClient::setURL.

Ideally begin should not be called twice if the client hasn't changed, but it may happen, better safe than sorry.

@paulocsanz paulocsanz changed the title Fix reuse for different URIs in HTTPClient::begin Draft: Fix reuse for different URIs in HTTPClient::begin Jan 28, 2022
@d-a-v d-a-v added the alpha included in alpha release label Jan 29, 2022
Copy link
Collaborator

@d-a-v d-a-v left a comment

Choose a reason for hiding this comment

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

Looks good!

@d-a-v d-a-v added this to the 3.1 milestone Mar 29, 2022
@paulocsanz paulocsanz changed the title Draft: Fix reuse for different URIs in HTTPClient::begin Fix reuse for different URIs in HTTPClient::begin Mar 30, 2022
@paulocsanz
Copy link
Contributor Author

paulocsanz commented Mar 30, 2022

Let's merge this then! I haven't had time to test this deeply and it doesn't seem to fix all problems from the issue, but it's probably useful the way it is. I removed the draft tag.

@d-a-v d-a-v merged commit 32939c4 into esp8266:master Mar 30, 2022
hasenradball pushed a commit to hasenradball/Arduino that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpha included in alpha release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ESP8266 HTTPClient cannot be reused to connect to a second, different host
4 participants