refactor: engine/tcp/worker perf improvements
This commit is contained in:
@@ -17,11 +17,13 @@ type Config struct {
|
||||
|
||||
// IOConfig configures packet IO.
|
||||
type IOConfig struct {
|
||||
QueueSize uint32 `mapstructure:"queueSize" yaml:"queueSize"`
|
||||
ReadBuffer int `mapstructure:"rcvBuf" yaml:"rcvBuf"`
|
||||
WriteBuffer int `mapstructure:"sndBuf" yaml:"sndBuf"`
|
||||
Local bool `mapstructure:"local" yaml:"local"`
|
||||
RST bool `mapstructure:"rst" yaml:"rst"`
|
||||
QueueSize uint32 `mapstructure:"queueSize" yaml:"queueSize"`
|
||||
ReadBuffer int `mapstructure:"rcvBuf" yaml:"rcvBuf"`
|
||||
WriteBuffer int `mapstructure:"sndBuf" yaml:"sndBuf"`
|
||||
Local bool `mapstructure:"local" yaml:"local"`
|
||||
RST bool `mapstructure:"rst" yaml:"rst"`
|
||||
NumQueues int `mapstructure:"numQueues" yaml:"numQueues"`
|
||||
MaxPacketLen uint32 `mapstructure:"maxPacketLen" yaml:"maxPacketLen"`
|
||||
|
||||
// PacketIO overrides NFQueue creation when set.
|
||||
// When provided, App.Close will call PacketIO.Close.
|
||||
|
||||
Reference in New Issue
Block a user