瀏覽代碼

Fix typos

pull/175/head
Kian-Meng, Ang 3 年之前
父節點
當前提交
f90dd3edb7
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. +1
    -1
      CHANGELOG
  2. +4
    -4
      src/ibrowse_http_client.erl

+ 1
- 1
CHANGELOG 查看文件

@ -100,7 +100,7 @@ CONTRIBUTIONS & CHANGE HISTORY
* Fixed various issues reported * Fixed various issues reported
13-04-2011 - v2.2.0 13-04-2011 - v2.2.0
* Filipe David Manana added IPv6 support. This is a mjor new
* Filipe David Manana added IPv6 support. This is a major new
feature, Thank you Filipe! feature, Thank you Filipe!
* Joseph Wayne Norton contributed tweaks to .gitignore * Joseph Wayne Norton contributed tweaks to .gitignore

+ 4
- 4
src/ibrowse_http_client.erl 查看文件

@ -1371,7 +1371,7 @@ upgrade_to_ssl(#state{socket = Socket,
proxy_tunnel_setup = done}, proxy_tunnel_setup = done},
send_queued_requests(lists:reverse(Q), State_1); send_queued_requests(lists:reverse(Q), State_1);
Err -> Err ->
do_trace("Upgrade to SSL socket failed. Reson: ~p~n", [Err]),
do_trace("Upgrade to SSL socket failed. Reason: ~p~n", [Err]),
do_error_reply(State, {error, {send_failed, Err}}), do_error_reply(State, {error, {send_failed, Err}}),
{error, send_failed} {error, send_failed}
end. end.
@ -1961,13 +1961,13 @@ do_reply(#state{prev_req_id = Prev_req_id} = State,
catch StreamTo ! {ibrowse_async_response, ReqId, Body_1} catch StreamTo ! {ibrowse_async_response, ReqId, Body_1}
end, end,
catch StreamTo ! {ibrowse_async_response_end, ReqId}, catch StreamTo ! {ibrowse_async_response_end, ReqId},
%% We don't want to delete the Req-id to Pid mapping straightaway
%% We don't want to delete the Req-id to Pid mapping straight away
%% as the client may send a stream_next message just while we are %% as the client may send a stream_next message just while we are
%% sending back this ibrowse_async_response_end message. If we %% sending back this ibrowse_async_response_end message. If we
%% deleted this mapping straightaway, the caller will see a
%% deleted this mapping straight away, the caller will see a
%% {error, unknown_req_id} when it calls ibrowse:stream_next/1. To %% {error, unknown_req_id} when it calls ibrowse:stream_next/1. To
%% get around this, we store the req id, and clear it after the %% get around this, we store the req id, and clear it after the
%% next request. If there are wierd combinations of stream,
%% next request. If there are weird combinations of stream,
%% stream_once and sync requests on the same connection, it will %% stream_once and sync requests on the same connection, it will
%% take a while for the req_id-pid mapping to get cleared, but it %% take a while for the req_id-pid mapping to get cleared, but it
%% should do no harm. %% should do no harm.

Loading…
取消
儲存