Skip to content

Commit

Permalink
Fix typos (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
kianmeng committed Sep 19, 2021
1 parent efd040d commit 22d6fd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Expand Up @@ -100,7 +100,7 @@ CONTRIBUTIONS & CHANGE HISTORY
* Fixed various issues reported

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!
* Joseph Wayne Norton contributed tweaks to .gitignore

Expand Down
8 changes: 4 additions & 4 deletions src/ibrowse_http_client.erl
Expand Up @@ -1371,7 +1371,7 @@ upgrade_to_ssl(#state{socket = Socket,
proxy_tunnel_setup = done},
send_queued_requests(lists:reverse(Q), State_1);
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}}),
{error, send_failed}
end.
Expand Down Expand Up @@ -1961,13 +1961,13 @@ do_reply(#state{prev_req_id = Prev_req_id} = State,
catch StreamTo ! {ibrowse_async_response, ReqId, Body_1}
end,
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
%% 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
%% 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
%% take a while for the req_id-pid mapping to get cleared, but it
%% should do no harm.
Expand Down

0 comments on commit 22d6fd6

Please sign in to comment.