mirror of
https://github.com/open-simh/simh.git
synced 2026-01-25 11:55:43 +00:00
Periodically flush buffered console mux data. This is necessary to cover the situation when data was buffered and sending data out the connection stalled due to OS/network buffering and no more output traffic happens to be generated.
This commit is contained in:
@@ -185,6 +185,8 @@ if (sim_con_tmxr.master == 0) /* not Telnet? done */
|
||||
if (tmxr_poll_conn (&sim_con_tmxr) >= 0) /* poll connect */
|
||||
sim_con_ldsc.rcve = 1; /* rcv enabled */
|
||||
sim_activate_after(uptr, 1000000); /* check again in 1 second */
|
||||
if (sim_con_ldsc.xmte == 0) /* xmt disabled? */
|
||||
tmxr_send_buffered_data (&sim_con_ldsc); /* try to flush buffered data */
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user