diff options
author | Loïc Hoguin <[email protected]> | 2013-02-11 09:03:13 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-02-11 09:03:13 +0100 |
commit | 40b8d0befcd8b310a7a48e07df7d629153903cca (patch) | |
tree | edd79574d4a9f6f01fbafe9295814dccd9528e52 /examples/echo_get/src/echo_get.app.src | |
parent | 65ed13d2da2e6bab65fcde7db2e46060c33be71f (diff) | |
download | cowboy-40b8d0befcd8b310a7a48e07df7d629153903cca.tar.gz cowboy-40b8d0befcd8b310a7a48e07df7d629153903cca.tar.bz2 cowboy-40b8d0befcd8b310a7a48e07df7d629153903cca.zip |
Better handle socket closing with loop handlers
We now read from the socket to be able to detect errors or TCP close
events, and buffer the data if any. Once the data receive goes over
a certain limit, which defaults to 5000 bytes, we simply close the
connection with an {error, overflow} reason.
Diffstat (limited to 'examples/echo_get/src/echo_get.app.src')
0 files changed, 0 insertions, 0 deletions