-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HttpConnector: do not report connection timeouts as user interrupts
If a conenct() times out (because the server is not responsive), it throws a SocketTimeoutException which is an InterruptedIOException. The latter, however, are mapped by the HttpConnector to InterruptedExceptions indicating a user interruption of the download, which is generally correct, but not for this specific subclass. Fix this by handling this subclass separately and rethrowing it as ordinary IOException. Fixes #3851. Closes #6209. Change-Id: I0c3b46921a725f5a5a728a83dd75c7c83c6a46f4 PiperOrigin-RevId: 245398269
- Loading branch information
1 parent
341fad3
commit 982e0b8
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters