OTA Socket Hangup

Hi,
I am continually getting a Socket Hangup when Uploading to an ESP32 via OTA.
Sometimes the upload can get all the way through only to fail at the last moment, but mostly at the start or part way through.
Is this due to a poor internet connection?
Are there any settings that should be made in the Router to get more reliable performance.

Thanks.

Hi,

For sure a poor internet access may cause an eventual disconnection and therefore the situation you are facing.

I was wondering if can you post a debug response form a device that faces this situation, to check what is going on, just for testing purposes.