Clarify comment in decoder state.
This commit is contained in:
parent
422c783a47
commit
b426630613
|
@ -285,7 +285,8 @@ impl Decoder for Codec {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now that we know we have the full body, split off the body,
|
// Now that we know we have the full body, split off the body,
|
||||||
// and reset the decoder state for the next message.
|
// and reset the decoder state for the next message. Otherwise
|
||||||
|
// we will attempt to read the next header as the current body.
|
||||||
let body = src.split_to(body_len);
|
let body = src.split_to(body_len);
|
||||||
self.state = DecodeState::Head;
|
self.state = DecodeState::Head;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue