-
-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Description
Hello, the end of the chunk should be ended by two sets of \r\n
. but parse_chunk_size
considers that one set is enough, which results in the inability to know the completion of message transmission in the TCP stream.
for example:
correct:
let buf = b"0\r\n\r\n";
assert_eq!(httparse::parse_chunk_size(buf), Ok(httparse::Status::Complete((3, 0))));
unexp:
let buf = b"0\r\n";
assert_eq!(httparse::parse_chunk_size(buf), Ok(httparse::Status::Partial));
let buf = b"0\r\n\r";
assert_eq!(httparse::parse_chunk_size(buf), Ok(httparse::Status::Partial));
Metadata
Metadata
Assignees
Labels
No labels