diff options
author | Andrei Vagin <avagin@google.com> | 2020-04-22 14:15:33 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-22 14:17:11 -0700 |
commit | 37f863f62813f76b05979494c1bc2fe102629321 (patch) | |
tree | 7f5beb725c201029369e78dd9f8225551224f465 /pkg/tcpip/stack/ndp_test.go | |
parent | c31641150d9ee0e4b9c7cf1210c4e89a030a6bd7 (diff) |
tcp: handle listen after shutdown properly
Right now, sentry panics in this case:
panic: close of nil channel
goroutine 67 [running]:
pkg/tcpip/transport/tcp/tcp.(*endpoint).listen(0xc0000ce000, 0x9, 0x0)
pkg/tcpip/transport/tcp/endpoint.go:2208 +0x170
pkg/tcpip/transport/tcp/tcp.(*endpoint).Listen(0xc0000ce000, 0x9, 0xc0003a1ad0)
pkg/tcpip/transport/tcp/endpoint.go:2179 +0x50
Fixes #2468
PiperOrigin-RevId: 307896725
Diffstat (limited to 'pkg/tcpip/stack/ndp_test.go')
0 files changed, 0 insertions, 0 deletions