Skip to content

Add timeout for Http request

username-removed-213066 requested to merge stream101/fdroidclient:master into master

The timeout of HttpURLConnection is 0, which means the request would never return if either connection or read timeouts, and the code would never catch these exceptions.

This patch set explicit timeout value (10s for connection timeout and 40s for read timeout), so the code would catch and handle timeout exceptions as you would expect.

Best,

Merge request reports