diff options
author | Ingela Anderton Andin <ingela@erlang.org> | 2018-04-26 09:47:01 +0200 |
---|---|---|
committer | Ingela Anderton Andin <ingela@erlang.org> | 2018-04-27 09:57:29 +0200 |
commit | 16ae8f29bce19690bc3dfcb0838c402f150ee5c1 (patch) | |
tree | 09f2182244830583cd998fe8fb5df70d6d7734fe | |
parent | 381ab6129998cbd43216eaafabf7cef78c879c5d (diff) | |
download | erlang-16ae8f29bce19690bc3dfcb0838c402f150ee5c1.tar.gz |
inets: Improve httpc gracefulness
This commit will make the close down sequence work as intended, and no
crash report will be generated. Alas such error corner cases are hard to
write automated test for.
-rw-r--r-- | lib/inets/src/http_client/httpc_handler.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inets/src/http_client/httpc_handler.erl b/lib/inets/src/http_client/httpc_handler.erl index eeb08ce0ee..c9763507d1 100644 --- a/lib/inets/src/http_client/httpc_handler.erl +++ b/lib/inets/src/http_client/httpc_handler.erl @@ -839,7 +839,7 @@ connect_and_send_first_request(Address, Request, #state{options = Options0} = St self() ! {init_error, error_sending, httpc_response:error(Request, Reason)}, {ok, State#state{request = Request, - session = #session{socket = Socket}}} + session = Session}} end; {error, Reason} -> self() ! {init_error, error_connecting, |