|  | @@ -66,7 +66,7 @@ type Config struct {
 | 
	
		
			
				|  |  |  	WriteTimeout time.Duration
 | 
	
		
			
				|  |  |  	Timeout      time.Duration // Read and Write
 | 
	
		
			
				|  |  |  	DialTimeout  time.Duration
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +	
 | 
	
		
			
				|  |  |  	Reconnect   bool // Reconnect 自动重连. 仅用于客户端
 | 
	
		
			
				|  |  |  	IgnoreError bool // IgnoreError 忽略首次连接时失败的错误, 用于 Reconnect 启用时. 仅用于客户端
 | 
	
		
			
				|  |  |  	MuxBuff     int  // ReadMultiplexer.ReadMux Only
 | 
	
	
		
			
				|  | @@ -102,11 +102,11 @@ func optimizationConn(conn net.Conn) net.Conn {
 | 
	
		
			
				|  |  |  type tcpAliveConn struct {
 | 
	
		
			
				|  |  |  	address string
 | 
	
		
			
				|  |  |  	net.Conn
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +	
 | 
	
		
			
				|  |  |  	Config *Config
 | 
	
		
			
				|  |  |  	buf    []byte
 | 
	
		
			
				|  |  |  	mu     sync.Mutex
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +	
 | 
	
		
			
				|  |  |  	handing bool
 | 
	
		
			
				|  |  |  	closed  bool
 | 
	
		
			
				|  |  |  }
 | 
	
	
		
			
				|  | @@ -165,11 +165,12 @@ func (t *tcpAliveConn) handleAlive() {
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  	for !t.closed {
 | 
	
		
			
				|  |  |  		if !t.hasAvailableNetFace() {
 | 
	
		
			
				|  |  | -			time.Sleep(3 * time.Second)
 | 
	
		
			
				|  |  | +			time.Sleep(DialTimout)
 | 
	
		
			
				|  |  |  			continue
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  		conn, err := t.Dial(t.address, t.Config.DialTimeout)
 | 
	
		
			
				|  |  |  		if err != nil {
 | 
	
		
			
				|  |  | +			time.Sleep(DialTimout)
 | 
	
		
			
				|  |  |  			continue
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  		t.mu.Lock()
 |