diff options
author | Ingela Anderton Andin <[email protected]> | 2015-09-10 15:53:25 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2015-09-10 15:53:25 +0200 |
commit | d96d6c5b4df80a37e03ec0d7b72b02fa087e5dee (patch) | |
tree | 78c0d2d98e00e3af77e20d76b623f5ba3eb5aaf6 /lib | |
parent | 5e8884f456626426c71a5b398ebc41e884e2dc39 (diff) | |
parent | aa0c98308a8e77b9d9b77a845494673cbe1c4e04 (diff) | |
download | otp-d96d6c5b4df80a37e03ec0d7b72b02fa087e5dee.tar.gz otp-d96d6c5b4df80a37e03ec0d7b72b02fa087e5dee.tar.bz2 otp-d96d6c5b4df80a37e03ec0d7b72b02fa087e5dee.zip |
Merge branch 'maint'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/inets/src/http_server/httpd_request_handler.erl | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/inets/src/http_server/httpd_request_handler.erl b/lib/inets/src/http_server/httpd_request_handler.erl index 25aea56568..e5d006c1fd 100644 --- a/lib/inets/src/http_server/httpd_request_handler.erl +++ b/lib/inets/src/http_server/httpd_request_handler.erl @@ -30,7 +30,7 @@ %% gen_server callbacks -export([init/1, handle_call/3, handle_cast/2, handle_info/2, - terminate/2, code_change/3]). + terminate/2, code_change/3, format_status/2]). -include("httpd.hrl"). -include("http_internal.hrl"). @@ -310,6 +310,18 @@ do_terminate(#state{mod = ModData} = State) -> cancel_request_timeout(State), httpd_socket:close(ModData#mod.socket_type, ModData#mod.socket). +format_status(normal, [_, State]) -> + [{data, [{"StateData", State}]}]; +format_status(terminate, [_, State]) -> + Mod = (State#state.mod), + case Mod#mod.socket_type of + ip_comm -> + [{data, [{"StateData", State}]}]; + {essl, _} -> + %% Do not print ssl options in superviosr reports + [{data, [{"StateData", + State#state{mod = Mod#mod{socket_type = 'TLS'}}}]}] + end. %%-------------------------------------------------------------------- %% code_change(OldVsn, State, Extra) -> {ok, NewState} |