Commit 0465dee
committed
client: handle connections with ready responses in
Currently, `waitAny` does not account for connections that already have
ready responses. Let's handle this by going through the set of owned
connections and checking them for ready responses. We should do this before
the timer start, since the checking overhead should not be accounted for
the waiting time.
Closes #132waitAny
1 parent 10f25e9 commit 0465dee
3 files changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
164 | 173 | | |
165 | 174 | | |
166 | 175 | | |
| |||
459 | 468 | | |
460 | 469 | | |
461 | 470 | | |
462 | | - | |
| 471 | + | |
463 | 472 | | |
464 | 473 | | |
465 | 474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
369 | 373 | | |
370 | 374 | | |
371 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1405 | 1405 | | |
1406 | 1406 | | |
1407 | 1407 | | |
1408 | | - | |
1409 | | - | |
1410 | 1408 | | |
1411 | 1409 | | |
1412 | | - | |
| 1410 | + | |
1413 | 1411 | | |
1414 | | - | |
1415 | 1412 | | |
1416 | 1413 | | |
1417 | 1414 | | |
| |||
0 commit comments