You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable WiFi so internet connection is back to work!
Device need to be restarted manually to "fix" it by hand.
To fix it for now for myself I have introduced timeout (the simplest solution?): master...PaSaSaP:uploadReadByte-timeout but I think that client should be disconnected in similar way just like when socket is closed on client side (which works).
I will try to reproduce it in latest git revision.
I think the issue here is with the abrupt disconnection of a client while upload is still in progress? If I remember values correctly, we end up with 'disconnected' TCP state only after ~10-15 minutes.
edit: I suppose uploadReadByte timeout works, just need to double-check we are waiting for the specific piece and not the overall upload so it ends up timing out
Basic Infos
Platform
Settings in IDE
Problem Description
I have checked it on Wemos D1 mini pro and on ESP-01 (default setting + debug messages) and behavior is the same.
Listening socket is not closed when client uploads file to HTTP Server and while uploading client disconnects from WiFi.
To reproduce it on PC with WiFi:
./request.py False
Device need to be restarted manually to "fix" it by hand.
To fix it for now for myself I have introduced timeout (the simplest solution?): master...PaSaSaP:uploadReadByte-timeout but I think that client should be disconnected in similar way just like when socket is closed on client side (which works).
I will try to reproduce it in latest git revision.
MCVE Sketch
Simple sketch available at: https://github.com/PaSaSaP/ESP8266_upload_file_issue
Debug Messages
All serial output with enabled all debug messages available at: https://github.com/PaSaSaP/ESP8266_upload_file_issue/blob/master/serial-output.log
The text was updated successfully, but these errors were encountered: