mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
hotfix: close gvisor endpoint is tcp conn closed (#378)
This commit is contained in:
@@ -55,7 +55,7 @@ func (h *gvisorTCPHandler) readFromTCPConnWriteToEndpoint(ctx context.Context, c
|
||||
if err != nil {
|
||||
log.Errorf("[TUN] Failed to read from tcp conn: %v", err)
|
||||
config.SPool.Put(buf[:])
|
||||
continue
|
||||
return
|
||||
}
|
||||
if read == 0 {
|
||||
log.Warnf("[TUN] Read from tcp conn length is %d", read)
|
||||
|
||||
Reference in New Issue
Block a user