logger.Fatal("Socket max message size bytes must be >= 1",zap.Int64("socket.max_message_size_bytes",config.GetSocket().MaxMessageSizeBytes))
}
ifconfig.GetSocket().ReadBufferSizeBytes<1{
logger.Fatal("Socket read buffer size bytes must be >= 1",zap.Int("socket.read_buffer_size_bytes",config.GetSocket().ReadBufferSizeBytes))
}
ifconfig.GetSocket().WriteBufferSizeBytes<1{
logger.Fatal("Socket write buffer size bytes must be >= 1",zap.Int("socket.write_buffer_size_bytes",config.GetSocket().WriteBufferSizeBytes))
}
ifconfig.GetSocket().ReadTimeoutMs<1{
logger.Fatal("Socket read timeout milliseconds must be >= 1",zap.Int("socket.read_timeout_ms",config.GetSocket().ReadTimeoutMs))
}
@@ -539,6 +543,8 @@ type SocketConfig struct {
Protocolstring`yaml:"protocol" json:"protocol" usage:"The network protocol to listen for traffic on. Possible values are 'tcp' for both IPv4 and IPv6, 'tcp4' for IPv4 only, or 'tcp6' for IPv6 only. Default 'tcp'."`
MaxMessageSizeBytesint64`yaml:"max_message_size_bytes" json:"max_message_size_bytes" usage:"Maximum amount of data in bytes allowed to be read from the client socket per message. Used for real-time connections."`
MaxRequestSizeBytesint64`yaml:"max_request_size_bytes" json:"max_request_size_bytes" usage:"Maximum amount of data in bytes allowed to be read from clients per request. Used for gRPC and HTTP connections."`
ReadBufferSizeBytesint`yaml:"read_buffer_size_bytes" json:"read_buffer_size_bytes" usage:"Size in bytes of the pre-allocated socket read buffer. Default 4096."`
WriteBufferSizeBytesint`yaml:"write_buffer_size_bytes" json:"write_buffer_size_bytes" usage:"Size in bytes of the pre-allocated socket write buffer. Default 4096."`
ReadTimeoutMsint`yaml:"read_timeout_ms" json:"read_timeout_ms" usage:"Maximum duration in milliseconds for reading the entire request. Used for HTTP connections."`
WriteTimeoutMsint`yaml:"write_timeout_ms" json:"write_timeout_ms" usage:"Maximum duration in milliseconds before timing out writes of the response. Used for HTTP connections."`
IdleTimeoutMsint`yaml:"idle_timeout_ms" json:"idle_timeout_ms" usage:"Maximum amount of time in milliseconds to wait for the next request when keep-alives are enabled. Used for HTTP connections."`