Skip to content

Commit

Permalink
[java] Setting read timeout as request timeout
Browse files Browse the repository at this point in the history
Should fix #8217
  • Loading branch information
diemol committed Feb 9, 2021
1 parent 5fffd88 commit 1ce3671
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -73,6 +73,7 @@ private AsyncHttpClient createHttpClient(ClientConfig config) {
.setWebSocketMaxBufferSize(Integer.MAX_VALUE)
.setWebSocketMaxFrameSize(Integer.MAX_VALUE)
.setNettyTimer(TIMER)
.setRequestTimeout(toClampedInt(config.readTimeout().toMillis()))
.setConnectTimeout(toClampedInt(config.connectionTimeout().toMillis()))
.setReadTimeout(toClampedInt(config.readTimeout().toMillis()));

Expand Down

0 comments on commit 1ce3671

Please sign in to comment.