Commit f688376
committed
HttpClient: Fix for not timing out queued requests
We would not watch the future until we started processing the request. This means that if we never started processing the request it would never timeout.
This could have been so bad that eventually we might request a watchdog with a negative timeout.
As an added bonus this reduces the variation of timeouts we may request from the WatchdogCache, allowing it to be much more efficent.1 parent 30c0168 commit f688376
File tree
2 files changed
+4
-4
lines changed- client/src/main/java/org/threadly/litesockets/client/http
2 files changed
+4
-4
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
337 | | - | |
338 | 336 | | |
339 | 337 | | |
340 | 338 | | |
| |||
520 | 518 | | |
521 | 519 | | |
522 | 520 | | |
523 | | - | |
| 521 | + | |
524 | 522 | | |
525 | 523 | | |
526 | 524 | | |
527 | 525 | | |
528 | 526 | | |
| 527 | + | |
| 528 | + | |
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
0 commit comments