mirror of
https://github.com/open-simh/simh.git
synced 2026-05-04 15:16:06 +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:
@@ -850,6 +850,7 @@ if (lp->serport) {
|
||||
free (lp->serconfig);
|
||||
lp->serconfig = NULL;
|
||||
lp->cnms = 0;
|
||||
lp->rcve = lp->xmte = 0;
|
||||
}
|
||||
else
|
||||
if (!lp->mp->modem_control) { /* serial connection? */
|
||||
@@ -862,6 +863,7 @@ else /* Telnet connection */
|
||||
if (lp->conn) {
|
||||
sim_close_sock (lp->conn, 0); /* close socket */
|
||||
lp->conn = 0;
|
||||
lp->rcve = lp->xmte = 0;
|
||||
}
|
||||
free(lp->ipad);
|
||||
lp->ipad = NULL;
|
||||
|
||||
Reference in New Issue
Block a user