We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 398eff6 commit e14003dCopy full SHA for e14003d
internal/common.go
@@ -877,11 +877,13 @@ func (c *Common) singleTCPLoop() error {
877
return
878
}
879
880
- c.logger.Debug("Target connection: get relay-id <- pool active %v", c.tunnelPool.Active())
+ c.logger.Debug("Target connection: get ******** <- pool active %v / %v per %v",
881
+ c.tunnelPool.Active(), c.tunnelPool.Capacity(), c.tunnelPool.Interval())
882
883
defer func() {
- c.tunnelPool.Put("", targetConn)
884
- c.logger.Debug("Tunnel connection: put relay-id -> pool active %v", c.tunnelPool.Active())
+ if targetConn != nil {
885
+ targetConn.Close()
886
+ }
887
}()
888
889
c.targetTCPConn = targetConn.(*net.TCPConn)
0 commit comments