Skip to content

Improve _uploadReadByte #2655

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

Closed
wants to merge 1 commit into from
Closed

Improve _uploadReadByte #2655

wants to merge 1 commit into from

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