Commit 0011da9
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: Isaac1 parent 90620b6 commit 0011da9
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| |||
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
395 | | - | |
| 396 | + | |
396 | 397 | | |
397 | 398 | | |
398 | 399 | | |
| |||
414 | 415 | | |
415 | 416 | | |
416 | 417 | | |
417 | | - | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
418 | 430 | | |
419 | 431 | | |
420 | 432 | | |
| |||
0 commit comments