diff options
author | Ingela Anderton Andin <[email protected]> | 2018-04-26 09:47:01 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2018-04-27 09:57:29 +0200 |
commit | 16ae8f29bce19690bc3dfcb0838c402f150ee5c1 (patch) | |
tree | 09f2182244830583cd998fe8fb5df70d6d7734fe /lib/inets/src | |
parent | 381ab6129998cbd43216eaafabf7cef78c879c5d (diff) | |
download | otp-16ae8f29bce19690bc3dfcb0838c402f150ee5c1.tar.gz otp-16ae8f29bce19690bc3dfcb0838c402f150ee5c1.tar.bz2 otp-16ae8f29bce19690bc3dfcb0838c402f150ee5c1.zip |
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.
Diffstat (limited to 'lib/inets/src')
-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, |