Optimize tcp_simple endpoint integration

This commit is contained in:
Michael Mikovsky
2026-06-01 15:54:17 -06:00
parent 9ab130a620
commit 641ee7682a
14 changed files with 43 additions and 18 deletions
+2 -1
View File
@@ -59,7 +59,8 @@ impl Session<FakePtyState> for PtySessionState {
session.opened_pending = false;
}
while let Some(packet) = incoming.pop_front() {
while !incoming.is_empty() {
let packet = incoming.remove(0);
match frame_opcode(&packet) {
Some(OP_INPUT) => {
let _ = endpoint.send_hook_frame(