Skip to content

Commit

Permalink
Do not print accept error on connection close
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddieAkeroyd committed Dec 24, 2023
1 parent 7f89753 commit 19db7d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions asyn/drvAsynSerial/drvAsynIPServerPort.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,12 @@ static void connectionListener(void *drvPvt)

} else {
clientFd = epicsSocketAccept(tty->fd, (struct sockaddr *) &clientAddr, &clientLen);
if (tty->fd == INVALID_SOCKET) {
asynPrint(pasynUser, ASYN_TRACE_FLOW,
"drvAsynIPServerPort: terminating connection thread for %s\n",
tty->serverInfo);
break; /* we must be in ioc shutdown and ttyCleanup has been called */
}
asynPrint(pasynUser, ASYN_TRACE_FLOW,
"drvAsynIPServerPort: new connection, socket=%d on %s\n",
clientFd, tty->serverInfo);
Expand Down

0 comments on commit 19db7d3

Please sign in to comment.