Signed-off-by: arraykeys@gmail.com <arraykeys@gmail.com>

This commit is contained in:
arraykeys@gmail.com
2017-09-28 15:50:31 +08:00
parent 54ce7dbde8
commit 5b3a5908a3
2 changed files with 4 additions and 0 deletions

View File

@ -156,6 +156,9 @@ func (s *TunnelBridge) ChnDeamon(item *BridgeItem) {
}
if err != nil {
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)
continue
} else {

View File

@ -202,6 +202,7 @@ func (s *TunnelClient) ServeConn() {
if err != nil {
utils.CloseConn(&inConn)
utils.CloseConn(&outConn)
log.Printf("build connection error, err: %s", err)
return
}