Skip to content

Commit

Permalink
Merge pull request #5 from xiaochen-db/jetty-patch-9.3.30
Browse files Browse the repository at this point in the history
Jetty patch to avoid hanging threads
  • Loading branch information
xiaochen-db authored May 2, 2023
2 parents 148ea77 + b8c60ca commit 6ac61f5
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ public WriteBlocker acquireWriteBlocker() throws IOException
{
return new WriteBlocker(acquire());
}


@Override
protected long getIdleTimeout()
{
// Timeout if sending message takes more than 30 sec
return 30000;
}

public static class WriteBlocker implements WriteCallback, Callback.NonBlocking, AutoCloseable
{
private final Blocker blocker;
Expand Down

0 comments on commit 6ac61f5

Please sign in to comment.