Commit 1e42c7e
fix(MsSql): default-validate is now IsOpen, no per-acquire SELECT 1 round-trip
The previous DefaultValidateConnectionAsync ran "SELECT 1" against every
pooled connection on every acquire. Under cancellation pressure (HTTP
server forwarding requests whose CT can fire mid-flight), that round-trip
could stall on a connection whose previous response hadn't been fully
drained — taking seconds and inviting the CT to cancel mid-validation.
That was wedging CosmoS3 PUTs through cosmoproxy.
Drop validation to a cheap !IsOpen-or-true check and let WithRetryAsync's
existing dead-connection retry path detect actually-broken connections
when the real query throws. Operators who want a wire-level health probe
on every acquire can still pass their own validateConnection delegate.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0aed7c1 commit 1e42c7e
1 file changed
Lines changed: 17 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
352 | 351 | | |
353 | 352 | | |
354 | 353 | | |
| |||
0 commit comments