ReadTimeouts
A server's read timeout (#6973): the longest a request's body may stall, nothing of it read, from the request's headers to the body's end. It never bounds the answer: a stream or a wait runs as long as it does.
It counts the time nothing of the body is read, whoever stops the reads. Reactor Netty stops reading when the route's demand runs out, so a route that reads its body as a stream and asks for none of it for as long (subscribing late, pausing between pieces) is answered 408 too, the client still sending. Wow's own routes read a body at once.
While its request is handled, Reactor Netty times the body (
HttpServer.readTimeout) and closes the connection past the timeout, and Answers answers 408 first, its detail naming the timeout and its key as the server's other refusals do (ServerRefusals). The route's body ends as a client's that went away. Over HTTP/2 the stream is reset after its answer, its request still open; a client still sending, as the JDK's is, keeps the reset alone.Once its request is answered, a body a route did not read to its end (a 401 or a 404 answered from the headers) is read on over HTTP/1.1, so that the kept-alive connection takes the next request; Reactor Netty's timeout ended with the answer. Drains bounds that read too: a connection whose body stalls as long is closed. An HTTP/2 stream is reset after its answer instead.
Over HTTP/1.1, both are installed once per connection the server sets up for it at its start (cleartext, or TLS without ALPN), as LingeringClose is; Answers is installed per request otherwise, an HTTP/2 stream's included.