epoll-example icon indicating copy to clipboard operation
epoll-example copied to clipboard

Infinite loop "for (;;)" on line 130

Open lauler1 opened this issue 1 year ago • 1 comments

The infinite loop "for (;;)" on line 130 is making the server never receive other clients while the first client is connected. Is this intentional or a loop?

Could be avoided by removing it.

lauler1 avatar Oct 12 '23 16:10 lauler1

epoll_wait will handle establish/data event and surely receive multiple clients simultaneously

onestraw avatar Oct 15 '23 12:10 onestraw