6a3987d418bc764a71fee61934e21d6de3fc6d35
Three related issues were causing the simulation to get stuck: 1. Network events (connect, disconnect, send_data) were scheduled with relative times instead of absolute times, causing events to be scheduled in the past once simulation time exceeded 10-100ms. 2. When DATA events couldn't be fully consumed (receiver buffer full), they stayed at their original time, preventing time from advancing. Now they are rescheduled to current_time + 10ms. 3. When poll_timeout was 0, WAKEUP events were created at current_time, causing an infinite loop where time never advanced. Now timeout=0 sets timedout immediately without creating an event.
Languages
C
98.4%
Shell
1%
Zig
0.4%
Batchfile
0.2%