text: "`Config.UseHTTP2` now defaults to `true` and `NewHTTP2Client` is rebuilt on `net/http.Transport` with `ForceAttemptHTTP2` + `http2.ConfigureTransport`, so HTTPS connections prefer HTTP/2 via TLS ALPN and fall back to HTTP/1.1 when the origin doesn't advertise h2. The single subscribe loop reuses the cached `*http.Client` across long-poll cycles, and on `SubscriptionManager.reconnect` SDK-managed clients are dropped so the next request re-runs TLS+ALPN — user-supplied clients pinned via `SetClient`/`SetSubscribeClient` are preserved. Set `UseHTTP2 = false` to opt out."
0 commit comments