Skip to content

Conversation

@vicatcu
Copy link
Contributor

@vicatcu vicatcu commented Apr 11, 2019

This change, without really understanding why, makes WebServer OTA less likely to fail with a broken pipe, and has been empirically demonstrated to recover from a condition that would otherwise prematurely terminate the connection during file transfer.

@vicatcu
Copy link
Contributor Author

vicatcu commented Apr 11, 2019

I'm going to test this tomorrow by just trying to do OTA updates and see if the WebServer OTA still fails occasionally. Earlier today, though, I tried a more rushed implementation of this that certainly overcame an apparent problem, as described in the source code comments associated with this PR.

@vicatcu
Copy link
Contributor Author

vicatcu commented Apr 11, 2019

if we'd rather see a timeout based limitation rather than an retry limitation I could certainly implement such a thing easily enough, but in that case what should be used for the timeout duration? A hard-coded time period (10 seconds?)? HTTP_MAX_POST_WAIT (5 seconds)?

@me-no-dev
Copy link
Member

We do not need this PR anymore :P

@me-no-dev me-no-dev closed this Apr 11, 2019
@vicatcu vicatcu deleted the improve_uploadReadByte branch April 11, 2019 14:55
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.

2 participants