Repository navigation
Commit 75ab378
committed
internal: keep input past a packet in DoReceive
GetInputLine() reads up to 255 bytes for the version line, so a peer
that sends its first packets in the same segment leaves them buffered
behind it. DoReceive() force-freed the input buffer after each packet,
dropping any of those bytes past the first packet. It now keeps
them and frees the buffer only once it is empty.1 parent a615007 commit 75ab378
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14872 | 14872 | | |
14873 | 14873 | | |
14874 | 14874 | | |
14875 | | - | |
| 14875 | + | |
| 14876 | + | |
| 14877 | + | |
14876 | 14878 | | |
14877 | 14879 | | |
14878 | 14880 | | |
| |||
0 commit comments