Configuration

class Configuration : Configuration

Configuration for the NettyApplicationEngine

Constructors

<init>

Configuration()

Configuration for the NettyApplicationEngine

Properties

configureBootstrap

var configureBootstrap: ServerBootstrap.() -> Unit

User-provided function to configure Netty’s ServerBootstrap

httpServerCodec

var httpServerCodec: () -> HttpServerCodec

User-provided function to configure Netty’s HttpServerCodec

requestQueueLimit

var requestQueueLimit: Int

Size of the queue to store ApplicationCall instances that cannot be immediately processed

requestReadTimeoutSeconds

var requestReadTimeoutSeconds: Int

Timeout in seconds for reading requests from client, “0” is infinite.

responseWriteTimeoutSeconds

var responseWriteTimeoutSeconds: Int

Timeout in seconds for sending responses to client

runningLimit

var runningLimit: Int

Number of concurrently running requests from the same http pipeline

shareWorkGroup

var shareWorkGroup: Boolean

Do not create separate call event group and reuse worker group for processing calls

tcpKeepAlive

var tcpKeepAlive: Boolean

If set to true, enables TCP keep alive for connections so all dead client connections will be discarded. The timeout period is configured by the system so configure your host accordingly.