diff options
author | Loïc Hoguin <[email protected]> | 2012-01-30 08:09:33 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-01-30 08:09:33 +0100 |
commit | 830cfc002e992126a2c605594f25d40a5a193968 (patch) | |
tree | a07bb8c0850b39e9ca93660659b1714025ea8ccc /src/cowboy_http_static.erl | |
parent | bb08cf85e38f02d5785b2a23c38d3b4c8020989c (diff) | |
download | cowboy-830cfc002e992126a2c605594f25d40a5a193968.tar.gz cowboy-830cfc002e992126a2c605594f25d40a5a193968.tar.bz2 cowboy-830cfc002e992126a2c605594f25d40a5a193968.zip |
Move max_connections check directly inside cowboy_listener
This is a big change in the internal cowboy API. This should not
have any impact on existing applications as only the acceptor is
expected to use these API calls.
The function cowboy_listener:wait/3 has been removed. max_connections
checking now occurs directly in cowboy_listener:add_connection/3.
If the pool is full and the acceptor has to wait, then it doesn't
return, waiting for a free space to be available.
To accomodate these changes, it is now cowboy_listener that will
inform the new connection that it is ready by sending {shoot, self()}.
This should be a great improvement to the latency of responses as
there is one less message to wait for before the request process
can do its work.
Overall the performance under heavy load should also be improved as
we greatly reduce the number of messages sent between the acceptor
and the listener process.
Diffstat (limited to 'src/cowboy_http_static.erl')
0 files changed, 0 insertions, 0 deletions