Commit 41ba14f
committed
Set minimum retry-after wait time to 1 second
We believe Cisco Spark is returning a `Retry-After` of `0` most probably due to a millisecond rounding issue, which would mean that the `Retry-After` time should really fall somewhere between `0 < t < 1`.
To account for the expectation that some amount of wait time was expected before the request should be retried, change any `Retry-After` responses of `0` seconds to `1` second to provide a minimum wait time for requests to be retried.1 parent a410f8f commit 41ba14f
1 file changed
+6
-4
lines changed| 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 | + | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| |||
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
162 | | - | |
| 163 | + | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
166 | | - | |
| 167 | + | |
| 168 | + | |
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
| |||
0 commit comments