diff options
author | Loïc Hoguin <[email protected]> | 2011-03-17 22:22:09 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-03-17 22:22:09 +0100 |
commit | a77b906b9f753b7ca30f4979551af0ac699b34ad (patch) | |
tree | 15130e0bf61cb4d6ed2ac5e06cfc2c5e0f847450 /src/cowboy_http_protocol.erl | |
parent | 0069e2465d5b8343e06775a3f85693869a05f3c4 (diff) | |
download | cowboy-a77b906b9f753b7ca30f4979551af0ac699b34ad.tar.gz cowboy-a77b906b9f753b7ca30f4979551af0ac699b34ad.tar.bz2 cowboy-a77b906b9f753b7ca30f4979551af0ac699b34ad.zip |
Don't crash on Transport:controlling_process return in the acceptor.
Crashes can happen if we close the connection too fast, leading to
controlling_process returning {error, closed} instead of ok. This can
happen when we receive bad requests, reply with 404 Not Found and more.
Simply do not match the return value of controlling_process to avoid this.
Diffstat (limited to 'src/cowboy_http_protocol.erl')
0 files changed, 0 insertions, 0 deletions