Open jheddings opened 2 years ago
The select() call returns immediately almost always, since the sockets are usually ready_to_read. This effectively creates a tight loop and very high CPU usage for any active connection.
select()
ready_to_read
I'd be happy to review improvements to address the reported concern.
The
select()
call returns immediately almost always, since the sockets are usuallyready_to_read
. This effectively creates a tight loop and very high CPU usage for any active connection.