Skip to content

Commit 2a9a692

Browse files
authored
Correct the read timeout so that it is actually be 20 seconds. (#184)
1 parent 3abff0d commit 2a9a692

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/java/com/segment/analytics/kotlin/core

1 file changed

+1
-1
lines changed

core/src/main/java/com/segment/analytics/kotlin/core/HTTPClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class HTTPClient(
3939
}
4040
val connection = requestedURL.openConnection() as HttpURLConnection
4141
connection.connectTimeout = 15_000 // 15s
42-
connection.readTimeout = 20_1000 // 20s
42+
connection.readTimeout = 20_000 // 20s
4343

4444
connection.setRequestProperty(
4545
"User-Agent",

0 commit comments

Comments
 (0)