Skip to content

Commit

Permalink
Correct the read timeout so that it is actually be 20 seconds. (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
didiergarcia committed Sep 26, 2023
1 parent 3abff0d commit 2a9a692
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class HTTPClient(
}
val connection = requestedURL.openConnection() as HttpURLConnection
connection.connectTimeout = 15_000 // 15s
connection.readTimeout = 20_1000 // 20s
connection.readTimeout = 20_000 // 20s

connection.setRequestProperty(
"User-Agent",
Expand Down

0 comments on commit 2a9a692

Please sign in to comment.