github.com/songzhibin97/gkit@v1.2.13/net/tcp/conf.go (about)

     1  package tcp
     2  
     3  import "time"
     4  
     5  var (
     6  	// DefaultWaitTimeout 默认等待超时时间
     7  	DefaultWaitTimeout = time.Millisecond
     8  
     9  	// DefaultConnTimeout 默认连接超时时间
    10  	DefaultConnTimeout = 30 * time.Second
    11  
    12  	// DefaultRetryInterval 默认重试间隔
    13  	DefaultRetryInterval = 100 * time.Millisecond
    14  
    15  	// DefaultReadBuffer 默认读取buffer大小
    16  	DefaultReadBuffer = 1 << 12
    17  
    18  	// DefaultServer 默认的服务名称
    19  	DefaultServer = "Default"
    20  )
    21  
    22  const (
    23  	// Status
    24  
    25  	UNKNOWN = iota
    26  	ACTIVE
    27  	ERROR
    28  )