Browse Source

KCP: delay conn close to prevent conn leak+

Shelikhoo 9 years ago
parent
commit
29e9473026
1 changed files with 1 additions and 1 deletions
  1. 1 1
      transport/hub/kcp.go

+ 1 - 1
transport/hub/kcp.go

@@ -74,7 +74,7 @@ type KCPVconn struct {
 	conntokeep time.Time
 }
 
-var counter int
+//var counter int
 
 func (kcpvc *KCPVconn) Read(b []byte) (int, error) {
 	ifb := time.Now().Add(time.Duration(kcpvc.conf.AdvancedConfigs.ReadTimeout) * time.Second)