Class BlockingWriteTimeoutHandler

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

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

Unlike Options.WRITE_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 WriteTimeoutException is thrown, and the ServerConnection is closed.

Author:
Carter Kozak