Skip to content

Commit

Permalink
hotfix: close gvisor endpoint is tcp conn closed (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
wencaiwulue authored Nov 23, 2024
1 parent a124799 commit 481b720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/core/gvisortunendpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 481b720

Please sign in to comment.