Package io.undertow.server.handlers
Class BlockingReadTimeoutHandler
java.lang.Object
io.undertow.server.handlers.BlockingReadTimeoutHandler
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
void
handleRequest
(HttpServerExchange exchange) Handle the request.
-
Method Details
-
handleRequest
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
Exception
-
builder
-