Repository navigation
Commit 166b1bc
committed
test(cutline): retry an MCP request once when its reused socket was reset
fetch keeps an idle socket for 4 s and the server closes it after 5 s. When a
synchronous test step blocks the process long enough, both timers fire
together and the reused socket is reset before the request is read, which
made "the tool answers prepare, status and cancel" fail under full-suite
load. Only ECONNRESET / UND_ERR_SOCKET is retried, once.1 parent 008f1e0 commit 166b1bc
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
153 | 165 | | |
154 | 166 | | |
155 | 167 | | |
| |||
0 commit comments