tailscale/net
Brad Fitzpatrick 6f5a03188b net/tshttpproxy: call winhttp calls from a fixed OS thread
We often see things in logs like:

2021-03-02 17:52:45.2456258 +0800 +0800: winhttp: Open: The parameter is incorrect.
2021-03-02 17:52:45.2506261 +0800 +0800: tshttpproxy: winhttp: GetProxyForURL("https://log.tailscale.io/c/tailnode.log.tailscale.io/5037bb42f4bc330e2d6143e191a7ff7e837c6be538139231de69a439536e0d68"): ERROR_INVALID_PARAMETER [unexpected]

I have a hunch that WinHTTP has thread-local state. If so, this would fix it.
If not, this is pretty harmless.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
(cherry picked from commit 10f48087f4)
2021-03-12 13:34:14 -08:00
..
dnscache net/dnscache: work on IPv6-only hosts (again) 2021-01-06 19:53:13 -08:00
flowtrack net/flowtrack: add Tuple.String method 2021-01-11 22:09:09 -08:00
interfaces net/interfaces: use a uint32_t for ipv4 address 2021-02-02 14:58:45 -08:00
netcheck net/netcheck: fix up staticcheck. 2021-02-23 15:35:56 -08:00
netns net/netns: remove use of unsafe on Windows 2020-11-14 19:53:10 -08:00
netstat net/netstat: remove a bit more unsafe 2020-11-17 13:49:24 -08:00
nettest net/nettest: de-flake tests on Windows 2021-01-15 18:21:56 -08:00
packet net/packet: add some more TSMP packet reject reasons and MaybeBroken bit 2021-02-04 10:59:17 -08:00
stun net/stun: Fix STUN attribute padding (#710) 2020-08-24 12:52:13 -07:00
tlsdial net/tlsdial, derp/derphttp: finish DERPNode.CertName validation 2020-06-01 09:01:37 -07:00
tsaddr net/tsaddr: add ChromeOS contains tests 2020-12-28 16:48:43 -08:00
tshttpproxy net/tshttpproxy: call winhttp calls from a fixed OS thread 2021-03-12 13:34:14 -08:00