Skip to content

Commit

Permalink
Fix long WebSocket connections
Browse files Browse the repository at this point in the history
  • Loading branch information
vi committed Jul 5, 2024
1 parent 5977980 commit e6a57f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scenario_executor/wsframer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ impl PacketRead for WsDecoder {
*this.offset += ret.consumed_bytes;
*this.unprocessed_bytes -= ret.consumed_bytes;
if *this.unprocessed_bytes == 0 {
*this.offset = 0;
trace!("fully processed this read chunk")
}

Expand Down

0 comments on commit e6a57f3

Please sign in to comment.