Commit 6e75e49
committed
[SEA-NodeJS] feat(kernel): map the socketTimeout ConnectionOption onto the kernel
The kernel napi binding exposes `socketTimeoutMs` (kernel
`HttpConfig::request_timeout` / reqwest `Client::timeout`, kernel #129).
Map the public `socketTimeout` ConnectionOption (ms) onto it in
`buildKernelHttpOptions`, so the per-connection read timeout works on the
kernel backend just like the Thrift path.
Only a positive value is forwarded: `socketTimeout: 0` means "disabled /
wait indefinitely" on Thrift, but forwarding `0` would make reqwest time
out immediately, so it is omitted (kernel keeps its large default).
Verified directly against a live serverless warehouse: `socketTimeout: 1`
makes a SEA request time out.
Co-authored-by: Isaac
Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>1 parent d94d57a commit 6e75e49
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| |||
414 | 415 | | |
415 | 416 | | |
416 | 417 | | |
417 | | - | |
| 418 | + | |
418 | 419 | | |
419 | 420 | | |
420 | 421 | | |
| |||
436 | 437 | | |
437 | 438 | | |
438 | 439 | | |
439 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
440 | 452 | | |
441 | 453 | | |
442 | 454 | | |
| |||
0 commit comments