Skip to content

Commit

Permalink
fix: Reduce the timeout to 3 minutes for the requests wait time in qu…
Browse files Browse the repository at this point in the history
…eue.

Since in write api server side we have total timeout of 2 minutes, it
does not make sense to wait 15 minutes to determine whether we have met
dead connection, let's reduce the timeout here
  • Loading branch information
GaoleMeng committed Apr 22, 2023
1 parent ea2e8fb commit ab8d501
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class ConnectionWorker implements AutoCloseable {
* We will constantly checking how much time we have been waiting for the next request callback
* if we wait too much time we will start shutting down the connections and clean up the queues.
*/
static Duration MAXIMUM_REQUEST_CALLBACK_WAIT_TIME = Duration.ofMinutes(15);
static Duration MAXIMUM_REQUEST_CALLBACK_WAIT_TIME = Duration.ofMinutes(3);

private Lock lock;
private Condition hasMessageInWaitingQueue;
Expand Down

0 comments on commit ab8d501

Please sign in to comment.