You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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));
The text was updated successfully, but these errors were encountered:
Hello, the end of the chunk should be ended by two sets of
\r\n
. butparse_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:
unexp:
The text was updated successfully, but these errors were encountered: