mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-10-28 01:03:50 +08:00
fix: Repeater 直连拨号改由请求超时控制,补充 DNS 重绑定与 HTTP/2 测试(Codex gpt-6.1-sol)(#42)
This commit is contained in:
1 parent
5e908e9f39
commit
91d2fe456c
2 files changed
+48
-2
No files matched your search
+3
-2
@@ -241,9 +241,10 @@ func (s *Server) repeaterTransport(useRecordingProxy, insecure bool) http.RoundT
|
||||
transport.DialTLSContext = nil
|
||||
transport.DialTLS = nil
|
||||
transport.Dial = nil
|
||||
// Let the request context enforce timeout_ms for the entire dial.
|
||||
transport.DialContext = (&net.Dialer{
|
||||
Timeout: 15 * time.Second, KeepAlive: 30 * time.Second,
|
||||
Control: repeaterBlockSensitiveDial,
|
||||
KeepAlive: 30 * time.Second,
|
||||
Control: repeaterBlockSensitiveDial,
|
||||
}).DialContext
|
||||
}
|
||||
if insecure {
|
||||
|
||||
Reference in new issue
Block a user