[master] e4289bb Add descriptive comment
Poul-Henning Kamp
phk at FreeBSD.org
Mon Jan 12 20:13:44 CET 2015
commit e4289bb0b8fbe72ad42bbebd4c0c832d216fcea3
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Jan 12 19:13:28 2015 +0000
Add descriptive comment
diff --git a/bin/varnishd/waiter/waiter.h b/bin/varnishd/waiter/waiter.h
index 1b9f305..3cb237d 100644
--- a/bin/varnishd/waiter/waiter.h
+++ b/bin/varnishd/waiter/waiter.h
@@ -26,6 +26,18 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
+ * Waiters are herders of connections: The monitor a large number of
+ * connections and react if data arrives, the connection is closed or
+ * if nothing happens for a specified timeout period.
+ *
+ * The "poll" waiter should be portable to just about anything, but it
+ * is not very efficient because it has to setup state on each call to
+ * poll(2). Almost all kernels have made better facilities for that
+ * reason, needless to say, each with its own NIH-controlled API:
+ *
+ * - kqueue on FreeBSD
+ * - epoll on Linux
+ * - ports on Solaris
*/
struct waited;
More information about the varnish-commit
mailing list