pid and fd & backlog for SYN packets #58
Replies: 1 comment
-
Each process has its own fd space, and different process can have the same fd number (number only, they point different connections).
It is a little bit tricky. In KENS, the KENSv3/app/kens/testhandshake.cpp Lines 288 to 313 in a610761 In If you are interested more, read below.The effect of the See NOTES in KENSv3/Documentation/man/listen.2.txt Lines 60 to 64 in 22b8748 FreeBSD also has a different meaning (https://www.freebsd.org/cgi/man.cgi?query=listen&sektion=2&format=html). |
Beta Was this translation helpful? Give feedback.
-
Can different process(pid) have the same file descriptor(fd)? Or file descriptor is an unique value?
I am confused about "backlog"in listen(). I thought the "backlog" limits the amount of SYN packet server can get. However, in TestAccept_Backlog2, backlog is 1 but expected_accept is 6. I thought expected_accept should be 1 as backlog is 1. Is my thought wrong?
Beta Was this translation helpful? Give feedback.
All reactions