RTEMS Source Builder | Handle IncompleteRead correctly when downloading. (#37)
Amar Takhar (@amar)
gitlab at rtems.org
Thu Oct 3 04:57:04 UTC 2024
Amar Takhar created an issue: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/37
## Summary
<!--Please provide as much information as possible such as error messages or attaching logs-->
@chris discovered that `http.client.IncompleteRead` is not handled correctly during his flight.
The fix is to take whatever data has been read and request a range, looping until you have all the data in the request. When we drop Python 2.7 support I will fix this as part of some later work documenting it here in case anyone else wants to fix it before then see:
* https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/blob/88afb1daa87355afa14f4c142a99355e550540db/source-builder/sb/download.py#L432
## Steps to reproduce
Download from an airplane.
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/37
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241003/b3a0b647/attachment.htm>
More information about the bugs
mailing list