package
Version:
v0.5.14
Opens a new window with list of versions in this module.
Published: Mar 21, 2019
License: GPL-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
func SetLinger(c interface{}, sec int) error
func SetNoDelay(conn interface{}, noDelay bool) error
开关 Delay 算法
noDelay = true 关闭
false 性能更好,但是延迟高
type SetLingerer interface {
SetLinger(sec int) error
}
type SetNoDelayer interface {
SetNoDelay(noDelay bool) error
}
type SetReadBuffer interface {
SetReadBuffer(bytes int) error
}
type SetReadBufferer interface {
SetReadBuffer(bytes int) error
}
type SetWriteBufferer interface {
SetWriteBuffer(bytes int) error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.