Commit ad2ab78
authored
📚 Update cpp-httplib, log error code on failed HTTP requests (#81)
This change updates us to `v0.8.4` of [cpp-httplib](https://github.com/yhirose/cpp-httplib), which includes a decent number of fixes to bugs that I suspect may be causing some of our HTTPS request failures we're seeing in production.
As a result of some of the changes in the httplib update, a few changes were made to the ServiceConnection implementations to avoid copying of `httplib::Client` and `httplib::Result` instances (they are now backed by `unique_ptr`).
Additional logging detail was also added in the Glimesh HTTP request failure case so we can determine root cause if this doesn't resolve the failures.
Verified by testing against local glimesh.tv instance.1 parent 526aca4 commit ad2ab78
5 files changed
Lines changed: 34 additions & 53 deletions
File tree
- src/ServiceConnections
Submodule cpp-httplib updated 16 files
- .github/workflows/test.yaml+5-2
- README.md+150-50
- httplib.h+1.8k-820
- test/Makefile+2-2
- test/Makefile.fuzz_test+36
- test/fuzzing/Makefile+27
- test/fuzzing/corpus/1+1
- test/fuzzing/corpus/2+5
- test/fuzzing/server_fuzzer.cc+88
- test/fuzzing/server_fuzzer.dict+224
- test/fuzzing/standalone_fuzz_target_runner.cpp+35
- test/gtest/gtest-all.cc+4-3
- test/gtest/gtest.h+7-6
- test/test.cc+781-106
- test/test.conf+3
- test/test_proxy.cc+27-30
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | 198 | | |
215 | 199 | | |
216 | 200 | | |
217 | 201 | | |
218 | 202 | | |
219 | | - | |
220 | 203 | | |
221 | 204 | | |
222 | 205 | | |
| |||
235 | 218 | | |
236 | 219 | | |
237 | 220 | | |
238 | | - | |
239 | 221 | | |
240 | 222 | | |
241 | 223 | | |
| |||
267 | 249 | | |
268 | 250 | | |
269 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
270 | 259 | | |
271 | 260 | | |
272 | 261 | | |
| |||
311 | 300 | | |
312 | 301 | | |
313 | 302 | | |
314 | | - | |
315 | 303 | | |
316 | 304 | | |
317 | 305 | | |
| |||
334 | 322 | | |
335 | 323 | | |
336 | 324 | | |
337 | | - | |
| 325 | + | |
338 | 326 | | |
339 | 327 | | |
340 | 328 | | |
| |||
347 | 335 | | |
348 | 336 | | |
349 | 337 | | |
350 | | - | |
| 338 | + | |
351 | 339 | | |
352 | 340 | | |
353 | 341 | | |
354 | 342 | | |
355 | 343 | | |
356 | | - | |
| 344 | + | |
357 | 345 | | |
358 | 346 | | |
359 | 347 | | |
| |||
382 | 370 | | |
383 | 371 | | |
384 | 372 | | |
385 | | - | |
| 373 | + | |
| 374 | + | |
386 | 375 | | |
387 | 376 | | |
388 | 377 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
33 | 43 | | |
34 | 44 | | |
35 | 45 | | |
| |||
203 | 213 | | |
204 | 214 | | |
205 | 215 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 216 | | |
224 | 217 | | |
225 | 218 | | |
226 | 219 | | |
227 | 220 | | |
228 | 221 | | |
229 | | - | |
230 | 222 | | |
231 | 223 | | |
232 | 224 | | |
| |||
277 | 269 | | |
278 | 270 | | |
279 | 271 | | |
280 | | - | |
281 | 272 | | |
282 | 273 | | |
283 | 274 | | |
| |||
312 | 303 | | |
313 | 304 | | |
314 | 305 | | |
315 | | - | |
| 306 | + | |
316 | 307 | | |
317 | 308 | | |
318 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
63 | 64 | | |
0 commit comments