Repository navigation
Commit b3d49ff
fix: return from httpserve_start only once the server accepts connections
httpserve_start returned as soon as the listener thread was spawned. With
the httplib bundled in DuckDB 1.5, a stop() that arrives before the
accept loop starts is ignored, so an httpserve_stop() right after
httpserve_start could wait forever on a listener that never ends (2 of 30
runs of SELECT httpserve_start(...), httpserve_stop() hung on v1.5).
httpserve_start now waits until the server is ready, and reports a listen
that fails after binding as an error.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent f4939d7 commit b3d49ff
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
619 | 634 | | |
620 | 635 | | |
621 | 636 | | |
| |||
0 commit comments