aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src
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 15:34:29 +0100
commitbce374269d6900a86fef9c326b23ca4629ea6297 (patch)
treea709bab66cd89c9c6589017df0dd001525ad7965 /lib/inets/src
parent2735f415510cf260258e092c0f3e4070a00fc06d (diff)
downloadotp-bce374269d6900a86fef9c326b23ca4629ea6297.tar.gz
otp-bce374269d6900a86fef9c326b23ca4629ea6297.tar.bz2
otp-bce374269d6900a86fef9c326b23ca4629ea6297.zip
inets: httpd - shutdown gracefully on connection or TLS handshake errors
Diffstat (limited to 'lib/inets/src')
-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 7e20a9ba67..82273c8c74 100644
--- a/lib/inets/src/http_server/httpd_request_handler.erl
+++ b/lib/inets/src/http_server/httpd_request_handler.erl
@@ -241,9 +241,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) ->