Skip to content

Latest commit

 

History

History
77 lines (49 loc) · 2.49 KB

File metadata and controls

77 lines (49 loc) · 2.49 KB

SocketOptions (common.socket) Configuration

Configuration options

Table 1. Optional configuration options
key type default value description

connect-timeout

Duration

PT10S

Socket connect timeout. Default is 10 seconds.

@return connect timeout duration

read-timeout

Duration

PT30S

Socket read timeout. Default is 30 seconds.

@return read timeout duration

socket-keep-alive

boolean

true

Configure socket keep alive. Default is true.

@return keep alive
@see java.net.StandardSocketOptions#SO_KEEPALIVE

socket-receive-buffer-size

int

32768

Socket receive buffer size.

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

socket-reuse-address

boolean

true

Socket reuse address. Default is true.

@return whether to reuse address
@see java.net.StandardSocketOptions#SO_REUSEADDR

socket-send-buffer-size

int

32768

Socket send buffer size.

@return buffer size, in bytes
@see java.net.StandardSocketOptions#SO_SNDBUF

tcp-no-delay

boolean

false

This option may improve performance on some systems. Default is false.

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