Skip to content

Commit

Permalink
Add read timeout to http_request as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
LadyCailin committed Mar 14, 2024
1 parent 416a628 commit 49c957f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ public Socket createSocket(InetAddress ia, int i, InetAddress ia1, int i1) throw
});
}
conn.setConnectTimeout(timeout);
conn.setReadTimeout(timeout);
conn.setInstanceFollowRedirects(followRedirects);
if(cookieStash != null) {
String cookies = cookieStash.getCookies(url);
Expand Down

0 comments on commit 49c957f

Please sign in to comment.