Commit a963ae9
authored
Revert back to iterating over lines (#680)
## Summary
Partially reverts #663 to iterating over lines, but keeps the skipping
of blank newlines.
## Details
#663 switched the HTTP backend to iterating over byte strings. The
problem is that is did not handle the case where a line was split over
multiple iterations.
## Test Plan
Run a benchmark with known errored request rate (preferably 0) and
ensure that there are no failed requests due to `orjson.JSONDecodeError:
unexpected end of data`.
---
- [x] "I certify that all code in this PR is my own, except as noted
below."
## Use of AI
- [ ] Includes AI-assisted code completion
- [ ] Includes code generated by an AI application
- [ ] Includes AI-generated tests (NOTE: AI written tests should have a
docstring that includes `## WRITTEN BY AI ##`)1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
481 | 480 | | |
482 | 481 | | |
483 | 482 | | |
| |||
0 commit comments