Skip to content

Commit

Permalink
increase the connector's idle timeout to make sure the idle timeout d…
Browse files Browse the repository at this point in the history
…oes not fire spuriously. (#5281)

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
  • Loading branch information
lorban committed Sep 16, 2020
1 parent 88a110e commit a37ab38
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -572,7 +572,10 @@ protected void service(HttpServletRequest request, HttpServletResponse response)
}
}
});
connector.setIdleTimeout(2 * delay);
// The timeout is going to be reset each time a DATA frame is fully consumed, hence
// every 2 loops in the above servlet. So the IdleTimeout must be greater than (2 * delay)
// to make sure it does not fire spuriously.
connector.setIdleTimeout(3 * delay);

Session session = newClient(new Session.Listener.Adapter());
MetaData.Request metaData = newRequest("POST", new HttpFields());
Expand Down

0 comments on commit a37ab38

Please sign in to comment.