Commit ecff60d
authored
fix: Avoid retaining buffer for latest parse in reader (#3533)
* test: Add failing test for parser reader cleanup
* fix: Avoid retaining buffer for latest parse in reader
The buffer can be arbitrarily large, and the parser shouldn’t keep it around while waiting on (and potentially also buffering) the next complete packet.1 parent 8d493f3 commit ecff60d
File tree
2 files changed
+215
-184
lines changed- packages/pg-protocol/src
2 files changed
+215
-184
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
565 | 566 | | |
566 | 567 | | |
567 | 568 | | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
568 | 575 | | |
0 commit comments