From ad745d61aeb301810e2aeef14bd2f9a5f0e726f7 Mon Sep 17 00:00:00 2001 From: Scott Feldman Date: Sat, 1 Apr 2023 14:14:53 -0700 Subject: [PATCH] udpsock: remove TODO comment on ephemeral ports being racy --- udpsock.go | 1 - 1 file changed, 1 deletion(-) diff --git a/udpsock.go b/udpsock.go index 5ffe697..f6a5713 100644 --- a/udpsock.go +++ b/udpsock.go @@ -126,7 +126,6 @@ type UDPConn struct { var eport = int32(49151) func ephemeralPort() int { - // TODO: this is racy, if concurrent DialUDPs; use atomic? if eport == int32(65535) { eport = int32(49151) } else {