aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-01-30 14:38:21 +0100
committerIngela Anderton Andin <[email protected]>2017-01-30 14:38:21 +0100
commit7f802b5c80166cc07e2fb77d6b6b4273747cccd2 (patch)
tree9e2c2bc7082f230112e19b135cad83f9fe3ce3ae /lib
parent7518684155aaabdde97c7b624803523c045bc185 (diff)
downloadotp-7f802b5c80166cc07e2fb77d6b6b4273747cccd2.tar.gz
otp-7f802b5c80166cc07e2fb77d6b6b4273747cccd2.tar.bz2
otp-7f802b5c80166cc07e2fb77d6b6b4273747cccd2.zip
inets: httpd - shutdown gracefully on connection or TLS handshake errors
Diffstat (limited to 'lib')
-rw-r--r--lib/inets/src/http_server/httpd_request_handler.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inets/src/http_server/httpd_request_handler.erl b/lib/inets/src/http_server/httpd_request_handler.erl
index 8fae9ac46e..01686b2596 100644
--- a/lib/inets/src/http_server/httpd_request_handler.erl
+++ b/lib/inets/src/http_server/httpd_request_handler.erl
@@ -240,9 +240,9 @@ handle_info({tcp_closed, _}, State) ->
handle_info({ssl_closed, _}, State) ->
{stop, normal, State};
handle_info({tcp_error, _, _} = Reason, State) ->
- {stop, Reason, State};
+ {stop, {shutdown, Reason}, State};
handle_info({ssl_error, _, _} = Reason, State) ->
- {stop, Reason, State};
+ {stop, {shutdown, Reason}, State};
%% Timeouts
handle_info(timeout, #state{mfa = {_, parse, _}} = State) ->