f-stack/example
logwang b9e91cfd6a Example: fix listen queue overflow.
According to the FreeBSD Manual Page:
- When kevent() returns and if `flags` is EVFILT_READ, sockets which have previously been passed to listen() return when there is an incoming connection pending. `data` contains the size of the listen backlog.

So if an EVFILT_READ event reaches and it is the listen socket, we must accept `event->data` times. And for `ff_epoll` interface, we should continue to accept until it fails.

In the previous version, we only accept once when event reaches, it will cause listen queue overflow.
2017-12-21 23:23:33 +08:00
..
Makefile Optimize makefile 2017-09-14 15:25:07 +08:00
main.c Example: fix listen queue overflow. 2017-12-21 23:23:33 +08:00
main_epoll.c Example: fix listen queue overflow. 2017-12-21 23:23:33 +08:00