Commit 0479bca
committed
fix(http): Long https requests would be cancelled
If we had a long http request it would be cancelled potentially even before the given timeout.
This is because there was ANOTHER timeout that is specifically in getResponseFromGetRequest().
SOLUTION:
This other timeout was intended to be used for retries, and to set an upper limit in time
for retrying. It was very low (3 seconds) so we bump it to a larger time instead to be safe.
In general, the user provided Timeout object should be used instead to set the expected upper limit.
The one this commit changes is the "backup" upper limit.
Signed-off-by: nkomonen-amazon <[email protected]>1 parent 6e97d56 commit 0479bca
File tree
1 file changed
+5
-2
lines changed1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | | - | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
| |||
0 commit comments