From 8c54c048f22f9ff5d02f53efba0b66aac291e9c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 2 Mar 2013 20:21:02 +0100 Subject: Explain what are listeners and acceptors in Getting Started --- guide/introduction.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/guide/introduction.md b/guide/introduction.md index d632950..e5616b0 100644 --- a/guide/introduction.md +++ b/guide/introduction.md @@ -77,6 +77,12 @@ The `cowboy:start_http/4` function starts a listener for HTTP connections using the TCP transport. The `cowboy:start_https/4` function starts a listener for HTTPS connections using the SSL transport. +Listeners are a group of processes that are used to accept and manage +connections. The processes used specifically for accepting connections +are called acceptors. The number of acceptor processes is unrelated to +the maximum number of connections Cowboy can handle. Please refer to +the Ranch guide for in-depth information. + Listeners are named. They spawn a given number of acceptors, listen for connections using the given transport options and pass along the protocol options to the connection processes. The protocol options must include -- cgit v1.2.3