From ee1c055abee4ef73aaf9e25a0bc2ec6f9da5c59b Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 13 Apr 2020 17:29:42 -0700 Subject: [PATCH] TMXR: All sockets should default to non blocking --- sim_tmxr.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sim_tmxr.c b/sim_tmxr.c index 6c3b5c40..6f81b78a 100644 --- a/sim_tmxr.c +++ b/sim_tmxr.c @@ -1648,8 +1648,7 @@ if (lp->mp && lp->modem_control) { /* This API ONLY works on mo sprintf (msg, "tmxr_set_get_modem_bits() - establishing outgoing connection to: %s", lp->destination); tmxr_debug_connect_line (lp, msg); lp->connecting = sim_connect_sock_ex (lp->datagram ? lp->port : NULL, lp->destination, "localhost", NULL, (lp->datagram ? SIM_SOCK_OPT_DATAGRAM : 0) | - (lp->packet ? SIM_SOCK_OPT_NODELAY : 0) | - SIM_SOCK_OPT_BLOCKING); + (lp->packet ? SIM_SOCK_OPT_NODELAY : 0)); } } } @@ -2805,8 +2804,7 @@ while (*tptr) { return sim_messagef (SCPE_ARG, "Unexpected specifier: %s\n", eptr); } sock = sim_connect_sock_ex (NULL, hostport, "localhost", NULL, (datagram ? SIM_SOCK_OPT_DATAGRAM : 0) | - (packet ? SIM_SOCK_OPT_NODELAY : 0) | - SIM_SOCK_OPT_BLOCKING); + (packet ? SIM_SOCK_OPT_NODELAY : 0)); if (sock != INVALID_SOCKET) sim_close_sock (sock); else @@ -2959,8 +2957,7 @@ while (*tptr) { } lp->packet = packet; sock = sim_connect_sock_ex (datagram ? listen : NULL, hostport, "localhost", NULL, (datagram ? SIM_SOCK_OPT_DATAGRAM : 0) | - (packet ? SIM_SOCK_OPT_NODELAY : 0) | - SIM_SOCK_OPT_BLOCKING); + (packet ? SIM_SOCK_OPT_NODELAY : 0)); if (sock != INVALID_SOCKET) { _mux_detach_line (lp, FALSE, TRUE); lp->destination = (char *)malloc(1+strlen(hostport));