epoll로 web proxy 하나 구현중입니다.
non-blocking 소켓을 사용하고 있습니다.
epoll의 man 페이지 예제처럼 listen 소켓을 만들고, 이것을 감시할 epoll fd에 ADD 하였습니다.
그런데, epoll_wait() 상태에서 동시에 두곳에서 접속이 들어오면 listen 소켓에서 이벤트가 하나만 발생했다고 리턴합니다.
epoll의 man 페이지에 아래와 같은 FAQ를 봤습니다.
[code:1]
Q7: If more than one event comes in between poll_wait(2) calls, are they combined or reported separately?
A7: They will be combined.