Skip to content

Commit 9ecdffd

Browse files
committed
- B Set timeout for both connection and read timer
#612
1 parent dff34d3 commit 9ecdffd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

approvaltests-util/src/main/java/com/spun/util/io/NetUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public static String loadWebPage(String url, String parameters, Duration timeout
3838
if (timeout != null)
3939
{
4040
connection.setConnectTimeout((int) timeout.toMillis());
41+
connection.setReadTimeout((int) timeout.toMillis());
4142
}
4243
connection.connect();
4344
int responseCode = connection.getResponseCode();

0 commit comments

Comments
 (0)