Signed-off-by: arraykeys@gmail.com <arraykeys@gmail.com>
This commit is contained in:
@ -156,6 +156,9 @@ func (s *TunnelBridge) ChnDeamon(item *BridgeItem) {
|
|||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("%s client control conn write signal fail, err: %s, retrying...", item.Key, err)
|
log.Printf("%s client control conn write signal fail, err: %s, retrying...", item.Key, err)
|
||||||
|
utils.CloseConn(Item.ClientControl)
|
||||||
|
*Item.ClientControl = nil
|
||||||
|
Item.ClientControl = nil
|
||||||
time.Sleep(time.Second * 3)
|
time.Sleep(time.Second * 3)
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -202,6 +202,7 @@ func (s *TunnelClient) ServeConn() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
utils.CloseConn(&inConn)
|
utils.CloseConn(&inConn)
|
||||||
utils.CloseConn(&outConn)
|
utils.CloseConn(&outConn)
|
||||||
|
log.Printf("build connection error, err: %s", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user