ConnectionConfig (webserver) Configuration

Type: io.helidon.webserver.ConnectionConfig

Configuration options

Optional configuration options
keytypedefault valuedescription
connect-timeout

Duration

PT10S

Connect timeout. Default is DEFAULT_CONNECT_TIMEOUT_DURATION.

@return connect timeout
keep-alive

boolean

true

Configure socket keep alive. Default is true.

@return keep alive
@see java.net.StandardSocketOptions#SO_KEEPALIVE
read-timeout

Duration

PT30S

Read timeout. Default is DEFAULT_READ_TIMEOUT_DURATION

@return read timeout
receive-buffer-size

int

32768

Socket receive buffer size. Default is DEFAULT_SO_BUFFER_SIZE.

@return buffer size, in bytes
@see java.net.StandardSocketOptions#SO_RCVBUF
reuse-address

boolean

true

Socket reuse address. Default is true.

@return whether to reuse address
@see java.net.StandardSocketOptions#SO_REUSEADDR
send-buffer-size

int

32768

Socket send buffer size. Default is DEFAULT_SO_BUFFER_SIZE.

@return buffer size, in bytes
@see java.net.StandardSocketOptions#SO_SNDBUF
tcp-no-delay

boolean

false

Disable Nagle’s algorithm by setting TCP_NODELAY to true. This can result in better performance on Mac or newer linux kernels for some payload types. Default is false.

@return whether to use TCP_NODELAY, defaults to `false`
@see java.net.StandardSocketOptions#TCP_NODELAY