Files
esphome/esphome
Pascal Vizeli c4d9ed7b70 [http_request] Fix infinite loop on read error in update component
The update component had the same infinite loop issue as the OTA component
when network read errors occurred. If container->read() returned an error
(negative value), it would be added to read_index and the loop would continue
indefinitely since get_bytes_read() would never reach content_length.

This fix breaks out of the read loop on any read error (read_bytes <= 0),
preventing watchdog resets and infinite loops during manifest downloads.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-14 17:06:53 +00:00
..
2025-09-19 12:59:48 +00:00
2025-12-09 20:08:35 -05:00
2025-12-08 14:37:45 -05:00
2025-12-08 14:37:45 -05:00
2025-04-24 15:43:37 +12:00
2025-12-08 14:37:45 -05:00
2025-09-19 12:59:48 +00:00
2025-12-08 14:37:45 -05:00