Skip to content

Commit 49c957f

Browse files
committed
Add read timeout to http_request as well.
1 parent 416a628 commit 49c957f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/com/laytonsmith/PureUtilities/Web/WebUtility.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ public Socket createSocket(InetAddress ia, int i, InetAddress ia1, int i1) throw
469469
});
470470
}
471471
conn.setConnectTimeout(timeout);
472+
conn.setReadTimeout(timeout);
472473
conn.setInstanceFollowRedirects(followRedirects);
473474
if(cookieStash != null) {
474475
String cookies = cookieStash.getCookies(url);

0 commit comments

Comments
 (0)