Class BlockingReadTimeoutHandler

java.lang.Object
io.undertow.server.handlers.BlockingReadTimeoutHandler
All Implemented Interfaces:
HttpHandler

public final class BlockingReadTimeoutHandler extends Object implements HttpHandler
BlockingReadTimeoutHandler allows configurable blocking I/O timeouts for read operations within an exchange.

Unlike Options.READ_TIMEOUT this only applies to blocking operations which can be helpful to prevent the worker pool from becoming saturated when clients stop responding.

When a timeout occurs, a ReadTimeoutException is thrown, and the ServerConnection is closed.

Author:
Carter Kozak