diff options
author | Tamir Duberstein <tamird@google.com> | 2020-07-05 06:08:52 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-05 06:10:21 -0700 |
commit | 0c13538664329cac40d6eccd642909285a6c32a1 (patch) | |
tree | ff83f917d148855c2e53e2ab09eb96b49771444d /pkg/tcpip/transport/tcp/BUILD | |
parent | 5ac34386a73bb37e5d99201327e0b3eed7abdb46 (diff) |
Add wakers synchronously
Avoid a race where an arbitrary goroutine scheduling delay can cause the
processor to miss events and hang indefinitely.
Reduce allocations by storing processors by-value in the dispatcher, and
by using a single WaitGroup rather than one per processor.
PiperOrigin-RevId: 319665861
Diffstat (limited to 'pkg/tcpip/transport/tcp/BUILD')
-rw-r--r-- | pkg/tcpip/transport/tcp/BUILD | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/tcpip/transport/tcp/BUILD b/pkg/tcpip/transport/tcp/BUILD index 6baeda8e4..3601207be 100644 --- a/pkg/tcpip/transport/tcp/BUILD +++ b/pkg/tcpip/transport/tcp/BUILD @@ -58,6 +58,7 @@ go_library( imports = ["gvisor.dev/gvisor/pkg/tcpip/buffer"], visibility = ["//visibility:public"], deps = [ + "//pkg/binary", "//pkg/log", "//pkg/rand", "//pkg/sleep", |