ExitListDownloader should replace HttpURLConnections.
This a little trickier than the other two *Downloader tasks because the annotation needs to be prepended.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related.
Learn more.
Simply switching to file copy would mean a major change here as the current download approach reads the data to memory for verifying and after that writes to file(s).
A toy example of an http-server that accepts connections, but never writes the response code yielded the stack-trace provided in #22602 (moved). The easiest remedy is setting a read-timeout.
(A quick inspection of the code that gets used when using Files.copy indicates that a timeout seems to be set there, too.)
Open points:
the current read timeout is arbitrarily set to 5000ms. How to find the best value?
Should a connect timeout be set, too? There is no bug report that indicates necessity for this timeout type.
Patch looks good and is now merged to master! I believe 5000ms is as good as a first guess as any other value. We'll find out if it's too low or high over time, and we'll find out if we should have set a connect timeout as well. I'd say let's start with this, it's better than what we did before. Closing as fixed. Thanks!
Trac: Resolution: N/Ato fixed Status: needs_review to closed