aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-04-26 09:47:01 +0200
committerIngela Anderton Andin <[email protected]>2018-04-27 09:57:29 +0200
commit16ae8f29bce19690bc3dfcb0838c402f150ee5c1 (patch)
tree09f2182244830583cd998fe8fb5df70d6d7734fe
parent381ab6129998cbd43216eaafabf7cef78c879c5d (diff)
downloadotp-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.
-rw-r--r--lib/inets/src/http_client/httpc_handler.erl2
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,