diff options
author | Loïc Hoguin <[email protected]> | 2013-03-02 20:21:02 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-03-02 20:21:02 +0100 |
commit | 8c54c048f22f9ff5d02f53efba0b66aac291e9c3 (patch) | |
tree | d8f300282fdaafa1b07dc61e72d33ff81833d535 | |
parent | a795b34f4670b782de1ef0bd1ee0d507b572a2fa (diff) | |
download | cowboy-8c54c048f22f9ff5d02f53efba0b66aac291e9c3.tar.gz cowboy-8c54c048f22f9ff5d02f53efba0b66aac291e9c3.tar.bz2 cowboy-8c54c048f22f9ff5d02f53efba0b66aac291e9c3.zip |
Explain what are listeners and acceptors in Getting Started
-rw-r--r-- | guide/introduction.md | 6 |
1 files changed, 6 insertions, 0 deletions
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 |