History log of /f-stack/example/main_epoll.c (Results 1 – 13 of 13)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v1.21.1, v1.21, v1.20, v1.13
# 030e1061 14-Mar-2019 fengbojiang(姜凤波) <[email protected]>

F-Stack's kni can work on DPDK 18.11 LTS now.


# e8591dc5 14-Mar-2019 fengbojiang(姜凤波) <[email protected]>

F-Stack's kni can work on DPDK 18.11 LTS now.


# 81a671f5 11-Feb-2019 vanlink <[email protected]>

remove unnecessary one byte from html page


# ec61049c 11-Feb-2019 vanlink <[email protected]>

remove unnecessary one byte from html page


Revision tags: v1.12
# b2dbf8fd 21-Dec-2017 logwang <[email protected]>

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 the

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.

show more ...


# b9e91cfd 21-Dec-2017 logwang <[email protected]>

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 the

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.

show more ...


Revision tags: v1.11
# c7fe2352 21-Nov-2017 logwang <[email protected]>

Example: keep run when accept failed.


# 02610d58 21-Nov-2017 logwang <[email protected]>

Example: keep run when accept failed.


# 1a527102 14-Sep-2017 logwang <[email protected]>

Example: exit when ff_api failed


# a02c88d6 08-Aug-2017 logwang <[email protected]>

Simplify startup arguments and add ff_fdisused.

Changes:
1.Simplify f-stack startup arguments:"--conf, --proc-type, --proc-id".
2.add a function `ff_fdisused` to check if fd is used in f-stack.


# 7991c745 17-May-2017 byronhe <[email protected]>

fix compile error


# 8a0cdb99 15-May-2017 limzhang(张力) <[email protected]>

example:remove printf


# fd436ff2 15-May-2017 limzhang(张力) <[email protected]>

add example code which use epoll API.