Is your feature request related to a problem? Please describe.
esptool.py can fail when uploading some images if compression is allowed: A fatal error occurred: Timed out waiting for packet header
Describe the solution you'd like
Using --no-compress resolves the issue, but a configurable timeout period may solve the issue without the impact on upload time that --no-compress causes.
Additional context
Steps used in troubleshooting here.