Implemented better testing and fixed skipepd frames
This commit is contained in:
@@ -268,6 +268,7 @@ void UDPSServer::ServiceClients() {
|
||||
}
|
||||
// Non-blocking peek
|
||||
int fd = tcpClients[i]->GetReadHandle();
|
||||
if (fd < 0 || fd >= FD_SETSIZE) { continue; /* HI-6: skip FDs outside select range */ }
|
||||
fd_set rset;
|
||||
FD_ZERO(&rset);
|
||||
FD_SET(fd, &rset);
|
||||
@@ -303,6 +304,7 @@ void UDPSServer::ServiceClients() {
|
||||
return;
|
||||
}
|
||||
int fd = serverSocket.GetReadHandle();
|
||||
if (fd < 0 || fd >= FD_SETSIZE) { return; /* HI-6 */ }
|
||||
fd_set rset;
|
||||
FD_ZERO(&rset);
|
||||
FD_SET(fd, &rset);
|
||||
|
||||
Reference in New Issue
Block a user