summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@tailscale.com>2025-10-29 13:02:29 -0700
committerBrad Fitzpatrick <brad@danga.com>2025-10-29 18:20:21 -0700
commit1a6c31538eb2c9e392f81ed9859df4581702e771 (patch)
tree9c947f7cae1d4b356a9a9a7462711af0d7574a13 /control/controlhttp/controlhttpserver/controlhttpserver.go
parent68cba300e4903d87f3f315e451fc70e67c58c8e6 (diff)
downloadtailscale-1a6c31538eb2c9e392f81ed9859df4581702e771.tar.xz
tailscale-1a6c31538eb2c9e392f81ed9859df4581702e771.zip
sessionrecording: fix regression in recent http2 package change
In 3f5c560fd45664813 I changed to use std net/http's HTTP/2 support, instead of pulling in x/net/http2. But I forgot to update DialTLSContext to DialContext, which meant it was falling back to using the std net.Dialer for its dials, instead of the passed-in one. The tests only passed because they were using localhost addresses, so the std net.Dialer worked. But in prod, where a tsnet Dialer would be needed, it didn't work, and would time out for 10 seconds before resorting to the old protocol. So this fixes the tests to use an isolated in-memory network to prevent that class of problem in the future. With the test change, the old code fails and the new code passes. Thanks to @jasonodonnell for debugging! Updates #17304 Updates 3f5c560fd45664813 Change-Id: I3602bafd07dc6548e2c62985af9ac0afb3a0e967 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> (cherry picked from commit 89962546471472823f4fce7877ca7f906c07ecb0)
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions