don't shutdown write channel of iocLogServer to allow logClient to detect disconnect
This commit is contained in:
@@ -486,18 +486,6 @@ static void acceptNewClient ( void *pParam )
|
||||
}
|
||||
}
|
||||
|
||||
status = shutdown(pclient->insock, SHUT_WR);
|
||||
if(status<0){
|
||||
char sockErrBuf[64];
|
||||
epicsSocketConvertErrnoToString ( sockErrBuf, sizeof ( sockErrBuf ) );
|
||||
fprintf (stderr, "%s:%d shutdown err %s\n", __FILE__, __LINE__,
|
||||
sockErrBuf);
|
||||
epicsSocketDestroy ( pclient->insock );
|
||||
free(pclient);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
status = fdmgr_add_callback(
|
||||
pserver->pfdctx,
|
||||
pclient->insock,
|
||||
|
||||
Reference in New Issue
Block a user