From e7b0e072cee9b6c5ba399261f4956fb2fe4bd34d Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Thu, 10 Feb 2022 17:17:29 +0100 Subject: [PATCH] VxWorks 6.9 returns EISCONN when using sendto() with addr on TCP --- src/rsrv/caserverio.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rsrv/caserverio.c b/src/rsrv/caserverio.c index 3a5eef279..dcd505b80 100644 --- a/src/rsrv/caserverio.c +++ b/src/rsrv/caserverio.c @@ -121,6 +121,13 @@ int lock_needed; while(pclient->send.stk&&!pclient->disconnect){ + if (pclient->proto == IPPROTO_TCP) + status = send( + pclient->sock, + pclient->send.buf, + pclient->send.stk, + NULL); + else status = sendto( pclient->sock, pclient->send.buf,