fix early idle timeout in IP stack simulator

This commit is contained in:
Martin Michelsen
2023-10-19 23:16:16 -07:00
parent 08361ad597
commit 6933a4338b
+3
View File
@@ -235,6 +235,9 @@ void IPStackSimulator::on_client_input(struct bufferevent* bev) {
return;
}
struct timeval tv = usecs_to_timeval(60 * 1000 * 1000);
event_add(c->idle_timeout_event.get(), &tv);
while (evbuffer_get_length(buf) >= 2) {
uint16_t frame_size;
evbuffer_copyout(buf, &frame_size, 2);