From fd211d3c039e3521537087ef848727bb4f7410c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 2 Jan 2012 09:41:30 +0100 Subject: 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. --- include/http.hrl | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/http.hrl b/include/http.hrl index c47a244..a7355f4 100644 --- a/include/http.hrl +++ b/include/http.hrl @@ -46,6 +46,7 @@ connection = keepalive :: keepalive | close, %% Request. + pid = undefined :: pid(), method = 'GET' :: http_method(), version = {1, 1} :: http_version(), peer = undefined :: undefined | {inet:ip_address(), inet:ip_port()}, -- cgit v1.2.3