Skip to content

Instantly share code, notes, and snippets.

@chobits
Last active December 22, 2015 02:19
Show Gist options
  • Save chobits/6402744 to your computer and use it in GitHub Desktop.
Save chobits/6402744 to your computer and use it in GitHub Desktop.
nginx source notes
The available and post_available field of structure ngx_event_t is only used by KQUEUE.
Other event modules (epoll, poll and etc) donest care about it.
For read event, available means size of data ready to read.
For read event(listening event), available means size of listen backlog.
post_avalibale is only used for multi-thread & KQUEUE.
multi_accept directive doesn't matter for kqueue. (see http://forum.nginx.org/read.php?2,3638,3661)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment