You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/net
Brad Fitzpatrick bb94561c96 net/netutil: fix regression where peerapi would get closed after 1st req
I introduced a bug in 8fe503057d when unifying oneConnListener
implementations.

The NewOneConnListenerFrom API was easy to misuse (its Close method
closes the underlying Listener), and we did (via http.Serve, which
closes the listener after use, which meant we were close the peerapi's
listener, even though we only wanted its Addr)

Instead, combine those two constructors into one and pass in the Addr
explicitly, without delegating through to any Listener.

Change-Id: I061d7e5f842e0cada416e7b2dd62100d4f987125
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 years ago
..
dns net/dns: add health check for particular broken-ish Linux DNS config 3 years ago
dnscache net/dnscache: don't do bootstrap DNS lookup after most failed dials 3 years ago
dnsfallback net/netns: thread logf into control functions 3 years ago
flowtrack all: use testingutil.MinAllocsPerRun 3 years ago
interfaces net/interfaces: bound Linux /proc/net/route parsing 3 years ago
netcheck envknob: add new package for all the strconv.ParseBool(os.Getenv(..)) 3 years ago
neterror net/{neterror,dns/resolver}: move PacketWasTruncated to neterror from DNS code 3 years ago
netknob all: disable TCP keep-alives on iOS/Android 3 years ago
netns net/netns: remove a useless probe of the "ip" command 3 years ago
netstat all: gofmt with Go 1.17 3 years ago
nettest net/nettest: deflake TestPipeTimeout 3 years ago
netutil net/netutil: fix regression where peerapi would get closed after 1st req 3 years ago
packet wgengine/netstack: clear TCP ECN bits before giving to gvisor 3 years ago
portmapper netcheck,portmapper,magicsock: ignore some UDP write errors on Linux 3 years ago
proxymux net/proxymux: add a listener mux that can run SOCKS and HTTP on a single socket. 3 years ago
socks5 net/tsdial: start of new package to unify all outbound dialing complexity 3 years ago
speedtest all: fix spelling mistakes 3 years ago
stun all: gofmt with Go 1.17 3 years ago
tlsdial envknob: add new package for all the strconv.ParseBool(os.Getenv(..)) 3 years ago
tsaddr ipnlocal, net/{dns,tsaddr,tstun}, wgengine: support MagicDNS on IPv6 3 years ago
tsdial net/dnscache, net/tsdial: add DNS caching to tsdial UserDial 3 years ago
tshttpproxy net/tshttpproxy: use correct size for Windows BOOL argument 3 years ago
tstun net/tstun: remove TODO that's done 3 years ago