hotfix: close gvisor endpoint is tcp conn closed (#378)

This commit is contained in:
naison
2024-11-23 17:08:03 +08:00
committed by GitHub
parent a1247995e7
commit 481b720da6

View File

@@ -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)