aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_sup.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-08-06 13:39:28 +0200
committerLoïc Hoguin <[email protected]>2012-08-06 13:39:28 +0200
commit6b354c1124035c54b6648665aafbe7197b34bd0e (patch)
treed31bdd1e0e6cffe8f31e50b40516e63201c6046d /src/ranch_sup.erl
parent7d52280c2e3fcc9e1b89435c98ef96d4758aed7a (diff)
downloadranch-6b354c1124035c54b6648665aafbe7197b34bd0e.tar.gz
ranch-6b354c1124035c54b6648665aafbe7197b34bd0e.tar.bz2
ranch-6b354c1124035c54b6648665aafbe7197b34bd0e.zip
Make accept asynchronous
Ranch now accepts connection asynchronously through a separate process. The accept process is linked to the acceptor, calls accept and does nothing else but send the socket back to the acceptor. This allows us to receive messages in the acceptor to handle upgrades instead of polling. This will also allow us later to make acceptors system processes. Remove support for connection pools in favor of a simpler max_connections setting. Connections can be removed from the count, allowing us to have as many long-lived connections as we want while still limiting the number of short-lived ones. Add max_connections, max_connections with long-lived connections, and upgrade tests.
Diffstat (limited to 'src/ranch_sup.erl')
0 files changed, 0 insertions, 0 deletions