Skip to content

Commit 2b06bbd

Browse files
docs(kernel): clarify HTTP/2 transport policy
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
1 parent f3e4ce5 commit 2b06bbd

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎CONNECTION_PARAMETERS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Per-statement `useCloudFetch` overrides remain unsupported on the kernel backend
7979
| Option | Type | Thrift | Kernel | Default Value | Note |
8080
| --------------------------- | ------------------------ | :----: | :----: | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8181
| `socketTimeout` | `number` (ms) | ✅ | ⚠️ | `900000` / `120000` | Kernel forwards only positive values. `0` means no timeout on Thrift but is omitted on Kernel, which then keeps its 120-second default. |
82-
| `enableHttp2` | `boolean` | ❌ | ✅ | `true` | Negotiate HTTP/2 for all kernel HTTPS traffic, with HTTP/1.1 fallback. `false` or an explicit/environment proxy forces HTTP/1.1, including bypassed hosts. |
82+
| `enableHttp2` | `boolean` | ❌ | ✅ | `true` | Negotiate HTTP/2 for session HTTPS traffic, with HTTP/1.1 fallback. `false` or an explicit/environment proxy forces HTTP/1.1, including bypassed hosts. Telemetry may reuse an earlier session's HTTP client for the same host. |
8383
| `proxy` | `ProxyOptions` | ✅ | ⚠️ | — | `{protocol, host, port, auth}`. Kernel supports HTTP/HTTPS proxies only; Thrift also supports the declared SOCKS variants. |
8484
| `noProxy` (internal) | `string` | ❌ | ⚠️ | — | Runtime-only Kernel bypass list, forwarded as `bypassHosts` only when an explicit `proxy` is also supplied. |
8585
| `customHeaders` | `Record<string, string>` | ✅ | ✅ | — | Sent on workspace, telemetry and feature-flag requests, not OAuth. Workspace calls ignore caller `Authorization`, `User-Agent`, `Content-Type`, `Content-Length`, `Transfer-Encoding`, `Connection`; Kernel also ignores `x-databricks-org-id`. |

‎lib/contracts/IDBSQLClient.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,10 @@ export type ConnectionOptions = {
199199
enableGeoSpatialSupport?: boolean;
200200

201201
/**
202-
* Negotiate HTTP/2 for all kernel HTTPS traffic, with HTTP/1.1 fallback.
202+
* Negotiate HTTP/2 for session HTTPS traffic, with HTTP/1.1 fallback.
203203
* Defaults to true. False or a configured proxy forces HTTP/1.1,
204204
* including bypassed destinations. Applies only with useKernel: true.
205+
* Telemetry may reuse an earlier session's HTTP client for the same host.
205206
*/
206207
enableHttp2?: boolean;
207208

0 commit comments

Comments
 (0)