带阿里标识的版本
This commit is contained in:
@@ -130,8 +130,14 @@ func NewResolveServer(quitCh <-chan struct{}, snapshotManager *SnapshotManager)
|
||||
IdleTimeout: 75 * time.Second,
|
||||
MaxHeaderBytes: 8 * 1024,
|
||||
TLSConfig: &tls.Config{
|
||||
MinVersion: tls.VersionTLS12,
|
||||
MinVersion: tls.VersionTLS11,
|
||||
// /resolve is a small JSON API; pin to HTTP/1.1 to avoid ALPN/h2 handshake variance
|
||||
// across some clients and middleboxes.
|
||||
NextProtos: []string{"http/1.1"},
|
||||
},
|
||||
// Disable automatic HTTP/2 upgrade on TLS listeners. This keeps handshake behavior
|
||||
// deterministic for SDK resolve calls.
|
||||
TLSNextProto: map[string]func(*http.Server, *tls.Conn, http.Handler){},
|
||||
}
|
||||
|
||||
return instance
|
||||
|
||||
Reference in New Issue
Block a user