Companion

Properties

Link copied to clipboard

How long a connection lingers at most, as nginx's lingering_timeout: not a key (#6973).

Link copied to clipboard
const val NAME: String

The name of the handler in a channel's pipeline.

Functions

Link copied to clipboard
fun closesTwice(channel: Channel)

Tells channel's LingeringClose, if it has one, that the answer it writes next is closed twice, so that the second close is the first's and not a shutdown's. The read timeout's 408 is (#7266): its Connection: close closes it once written, and Netty's read timeout handler closes it once more. Taken as a shutdown's, the second close would end the linger at once, and the client still sending would be reset.

Link copied to clipboard
fun install(channel: Channel)

Puts a LingeringClose before the traffic handler of channel's HTTP/1.1 pipeline; nothing without one.

Link copied to clipboard
fun of(server: HttpServer): HttpServer

server, whose connections linger after an answer written before the request's body was read.