summaryrefslogtreecommitdiff
path: root/DESIGN
diff options
context:
space:
mode:
Diffstat (limited to 'DESIGN')
-rw-r--r--DESIGN7
1 files changed, 7 insertions, 0 deletions
diff --git a/DESIGN b/DESIGN
index 480aa9b..2e1883e 100644
--- a/DESIGN
+++ b/DESIGN
@@ -57,6 +57,13 @@ A socket is read or written, never both. http_interest_set replaces an
57add-and-drop pair so that the invariant cannot be broken by accident, and the 57add-and-drop pair so that the invariant cannot be broken by accident, and the
58event layer hears about a change once instead of twice. 58event layer hears about a change once instead of twice.
59 59
60A task belongs to a connection, not to a descriptor number. The queue files
61it under the number, and the kernel hands that number to the next connection
62the moment this one closes. So a connection that is owed an answer is not
63read from, closing it cancels every task filed under its number, and a result
64carries the generation the descriptor had when the task was pushed, which the
65main loop holds against the current one before it sends anything.
66
60Accept waits until the client's request has arrived: TCP_DEFER_ACCEPT on 67Accept waits until the client's request has arrived: TCP_DEFER_ACCEPT on
61Linux, the accf_data filter on FreeBSD. Measured against a flood of silent 68Linux, the accf_data filter on FreeBSD. Measured against a flood of silent
62connections, the filter serves more requests than no filter, not fewer, so it 69connections, the filter serves more requests than no filter, not fewer, so it