aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_bstr.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-01-02 09:41:30 +0100
committerLoïc Hoguin <[email protected]>2012-01-06 20:23:59 +0100
commitfd211d3c039e3521537087ef848727bb4f7410c0 (patch)
tree67e23408d321d6bd779d46d88cef3d1d859ef361 /src/cowboy_bstr.erl
parentba87aa4193f5fadc35cbd34dc0191d2f3e2cef78 (diff)
downloadcowboy-fd211d3c039e3521537087ef848727bb4f7410c0.tar.gz
cowboy-fd211d3c039e3521537087ef848727bb4f7410c0.tar.bz2
cowboy-fd211d3c039e3521537087ef848727bb4f7410c0.zip
Fix handler crashes handling
We try to send a 500 error only if we didn't send the response headers yet. If they were, then we have no way to be sure the response was fully sent, nor should we assume anything about how this will be handled client-side, so we do nothing more and in both cases close the connection.
Diffstat (limited to 'src/cowboy_bstr.erl')
0 files changed, 0 insertions, 0 deletions