Commit 071bfc2
fix(test): drain HTTP fixture server pipes to fix Windows ReadTimeout
run_example_http_server spawned the fixture worker with stdout/stderr as
PIPEs that were never drained. The server logs a line per RPC; once the
(small) Windows OS pipe buffer fills, the server blocks on write() to
stderr, freezing waitress's single asyncore I/O loop — so every later
request hangs with httpx.ReadTimeout. POSIX hid this behind its 64 KiB
pipe buffers.
Drain both pipes in background threads (stderr buffered so the exit-code
error path still surfaces it). Verified on real Windows (Python 3.14,
vgi-rpc 0.20.0): the resumable-scan file goes from a 63s timeout to 1.5s,
6 passed.
With the root cause fixed, un-skip test_continue_on_fresh_client_skips_rebind
on win32 — its "tracked for investigation" skip was this same bug — and
drop the now-unused sys import.
Also gitignore local scratch artifacts (test.json, client-tests/,
docs/time-travel-init-plan.md).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 4e3a583 commit 071bfc2
3 files changed
Lines changed: 33 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
59 | 84 | | |
60 | 85 | | |
61 | 86 | | |
| |||
65 | 90 | | |
66 | 91 | | |
67 | 92 | | |
| 93 | + | |
| 94 | + | |
68 | 95 | | |
69 | 96 | | |
70 | 97 | | |
71 | 98 | | |
72 | 99 | | |
73 | | - | |
74 | | - | |
| 100 | + | |
75 | 101 | | |
76 | 102 | | |
77 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 105 | | |
113 | 106 | | |
114 | 107 | | |
| |||
0 commit comments