Force socket ready when high frequency looping (#9032)

This commit is contained in:
Jon Krause 2025-06-08 14:40:25 -10:00 committed by GitHub
parent c0b05ada1a
commit cdae06e571
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -285,6 +285,8 @@ bool Application::is_socket_ready(int fd) const {
// This function is thread-safe for reading the result of select()
// However, it should only be called after select() has been executed in the main loop
// The read_fds_ is only modified by select() in the main loop
if (HighFrequencyLoopRequester::is_high_frequency())
return true; // fd sets via select are not updated in high frequency looping - so force true fallback behavior
if (fd < 0 || fd >= FD_SETSIZE)
return false;