remove validation enforcing one Transport per net.PacketConn (#4851)

It is invalid to use a net.PacketConn in multiple Transports. However,
the validation logic is causing pain when using wrapped net.PacketConns.
It was introduce to guard against incorrect uses of the API when the
Transport was introduced, but this is probably less relevant now than it
was back then.
This commit is contained in:
Marten Seemann
2025-01-09 17:32:52 -08:00
committed by GitHub
parent cc6b7faafb
commit 9950b4c687
6 changed files with 6 additions and 134 deletions

View File

@@ -10,7 +10,6 @@ import (
"runtime/pprof"
"strconv"
"strings"
"sync"
"testing"
"time"
@@ -29,9 +28,6 @@ var mockCtrl *gomock.Controller
var _ = BeforeEach(func() {
mockCtrl = gomock.NewController(GinkgoT())
// reset the sync.Once
connMuxerOnce = *new(sync.Once)
})
var _ = BeforeSuite(func() {