Skip to content

Conversation

einglis
Copy link
Contributor

@einglis einglis commented Mar 11, 2022

In testing, I had an HTTP server that would server a 200 OK header, then crash, killing the connection.

The result was an exception in HTTPUpdater, which turned out to be due to passing a null pointer to WiFiClient::stopAllExcept

In catching this, I've chosen to return HTTPC_ERROR_CONNECTION_LOST. This is an HTTPClient definition, rather than an HTTPUpdate one, which makes me a little uneasy. I've justified it to myself on the basis that:

  1. There is no pre-existing HTTPUpdate value that seems appropriate, and
  2. The ones that are defined are preceded by the comment: /// note we use HTTP client errors too [...]
Copy link
Collaborator

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

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

Thanks!

@d-a-v d-a-v merged commit 732db59 into esp8266:master Mar 13, 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

None yet

3 participants