From 0c13538664329cac40d6eccd642909285a6c32a1 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Sun, 5 Jul 2020 06:08:52 -0700 Subject: 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 --- pkg/tcpip/transport/tcp/BUILD | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/tcpip/transport/tcp/BUILD') 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", -- cgit v1.2.3