aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets
diff options
context:
space:
mode:
authorKirilll Zaborsky <[email protected]>2015-05-27 14:27:07 +0300
committerKirilll Zaborsky <[email protected]>2015-06-01 21:17:56 +0300
commitf2bd95331c0e116f54429094af4d3fe24764b474 (patch)
treea411b90161de2f2c5e81edf1b0607e6c98b1cd75 /lib/inets
parent23501295ea5289897a75cb52a23685f8e6fcf18c (diff)
downloadotp-f2bd95331c0e116f54429094af4d3fe24764b474.tar.gz
otp-f2bd95331c0e116f54429094af4d3fe24764b474.tar.bz2
otp-f2bd95331c0e116f54429094af4d3fe24764b474.zip
inets: proper stop for httpc_handler K-A queue failure
httpc_handler should respond with proper {stop, Reason, State} message when sending request from keep-alive queue fails
Diffstat (limited to 'lib/inets')
-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 f4f0c37570..9d832ef18b 100644
--- a/lib/inets/src/http_client/httpc_handler.erl
+++ b/lib/inets/src/http_client/httpc_handler.erl
@@ -1330,7 +1330,7 @@ handle_keep_alive_queue(#state{status = keep_alive,
Session, <<>>,
State#state{keep_alive = KeepAlive});
{error, Reason} ->
- {stop, shutdown, {keepalive_failed, Reason}, State}
+ {stop, {shutdown, {keepalive_failed, Reason}}, State}
end
end
end.