mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Log window size
Without this change, this test produces quite opaque errors as valid TCP segments are not logged; what we see in the end is any random traffic that happened *after* the final TCP segment. PiperOrigin-RevId: 346864169
This commit is contained in:
committed by
gVisor bot
parent
7fa0a57fc9
commit
01126d47fc
@@ -55,7 +55,9 @@ func TestZeroReceiveWindow(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("expected packet was not received: %s", err)
|
||||
}
|
||||
if *gotTCP.WindowSize == 0 {
|
||||
windowSize := *gotTCP.WindowSize
|
||||
t.Logf("got window size = %d", windowSize)
|
||||
if windowSize == 0 {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user