File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ func (c *Client) tunnelHandshake() error {
144144 }
145145
146146 c .tunnelTCPConn = tunnelTCPConn .(* net.TCPConn )
147- c .bufReader = bufio .NewReader (& conn.TimeoutReader {Conn : c .tunnelTCPConn , Timeout : c . readTimeout })
147+ c .bufReader = bufio .NewReader (& conn.TimeoutReader {Conn : c .tunnelTCPConn , Timeout : 2 * reportInterval })
148148 c .tunnelTCPConn .SetKeepAlive (true )
149149 c .tunnelTCPConn .SetKeepAlivePeriod (reportInterval )
150150
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ func (s *Server) tunnelHandshake() error {
163163 }
164164
165165 s .tunnelTCPConn = tunnelTCPConn .(* net.TCPConn )
166- s .bufReader = bufio .NewReader (& conn.TimeoutReader {Conn : s .tunnelTCPConn , Timeout : s . readTimeout })
166+ s .bufReader = bufio .NewReader (& conn.TimeoutReader {Conn : s .tunnelTCPConn , Timeout : 2 * reportInterval })
167167 s .tunnelTCPConn .SetKeepAlive (true )
168168 s .tunnelTCPConn .SetKeepAlivePeriod (reportInterval )
169169
You can’t perform that action at this time.
0 commit comments