1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-30 16:40:21 +02:00

optimize ws frame generation

This commit is contained in:
Nikolay Kim
2018-02-09 20:43:14 -08:00
parent 78da98a16d
commit b4b5c78b51
4 changed files with 179 additions and 158 deletions

View File

@@ -214,7 +214,7 @@ impl Stream for WsStream {
}
loop {
match Frame::parse(&mut self.buf) {
match Frame::parse(&mut self.buf, true) {
Ok(Some(frame)) => {
// trace!("WsFrame {}", frame);
let (_finished, opcode, payload) = frame.unpack();