safesocket: make clear which net.Conns are winio types

Follow-up to earlier #9049.

Updates #9049

Change-Id: I121fbd2468770233a23ab5ee3df42698ca1dabc2
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2023-10-26 09:14:17 -07:00
committed by Brad Fitzpatrick
parent 95671b71a6
commit b4be4f089f
3 changed files with 117 additions and 23 deletions

View File

@@ -25,7 +25,7 @@ func TestBasics(t *testing.T) {
t.Cleanup(downgradeSDDL())
}
l, err := Listen(sock)
ln, err := Listen(sock)
if err != nil {
t.Fatal(err)
}
@@ -33,12 +33,12 @@ func TestBasics(t *testing.T) {
errs := make(chan error, 2)
go func() {
s, err := l.Accept()
s, err := ln.Accept()
if err != nil {
errs <- err
return
}
l.Close()
ln.Close()
s.Write([]byte("hello"))
b := make([]byte, 1024)