1
0
mirror of https://github.com/solemnwarning/directplay-lite synced 2024-12-30 16:45:37 +01:00
Daniel Collins 44423f4596 Avoid spinning the workers whenever a peer is connected.
Calling WSAEventSelect() causes the event to become signalled
even if there is nothing new, probably due to the socket being
writable.

Due to this, io_peer_recv() signals the event object whenever
claiming recv_busy just to check for pending data, and again
when releasing it, which leads to another worker immediately
waking up and claiming it to check for new messages, starting
the cycle again.

Only claim recv_busy and mask FD_RECV events if some data is
actually read from the socket.
2018-10-24 00:57:09 +01:00
..
2018-10-23 22:04:06 +01:00
2018-10-24 00:54:41 +01:00
2018-09-20 00:58:41 +01:00
2018-09-20 00:58:41 +01:00