small speed optimization for header sync ()

This commit is contained in:
Gary Yu 2018-10-11 16:47:27 +08:00 committed by GitHub
parent 4f462cdfdc
commit d3589d1bf5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,7 +186,7 @@ impl MessageHandler for Protocol {
let headers: Headers = headers_streaming_body(
conn,
msg.header.msg_len,
8,
32,
&mut total_read,
&mut reserved,
header_size,