You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2019/04/05 21:25:14 UTC
[couchdb-ibrowse] 08/20: .
This is an automated email from the ASF dual-hosted git repository.
jaydoane pushed a commit to branch handle-dead-ibrowse_lb-pids
in repository https://gitbox.apache.org/repos/asf/couchdb-ibrowse.git
commit 74c335d7e88035f604aacfa1b7254f3c85d9a181
Author: Shadow <u...@u>
AuthorDate: Thu Mar 9 01:31:12 2017 +0800
.
---
src/ibrowse_http_client.erl | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/ibrowse_http_client.erl b/src/ibrowse_http_client.erl
index 92ac431..2ebbd78 100644
--- a/src/ibrowse_http_client.erl
+++ b/src/ibrowse_http_client.erl
@@ -1876,6 +1876,11 @@ format_response_data(Resp_format, Body) ->
Body
end.
+%% dont message an unexisting server
+%% triggered by :stop or :tcp_closed on an unactive connection
+do_reply(State, undefined, undefined, _, _, Msg) ->
+ dec_pipeline_counter(State);
+
do_reply(State, From, undefined, _, Resp_format, {ok, St_code, Headers, Body}) ->
Msg_1 = {ok, St_code, Headers, format_response_data(Resp_format, Body)},
gen_server:reply(From, Msg_1),