浏览代码

Merge pull request #91 from flycodepl/bug/async_timeout_message.issue86

send message after async response timeout
pull/95/merge
Chandrashekhar Mullaparthi 12 年前
父节点
当前提交
b2c3f404ea
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      src/ibrowse_http_client.erl

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

@ -233,12 +233,12 @@ handle_info({ssl_error, _Sock, Reason}, State) ->
{stop, normal, State};
handle_info({req_timedout, From}, State) ->
case lists:keymember(From, #request.from, queue:to_list(State#state.reqs)) of
case lists:keysearch(From, #request.from, queue:to_list(State#state.reqs)) of
false ->
{noreply, State};
true ->
{value, #request{stream_to = StreamTo, req_id = ReqId}} ->
catch StreamTo ! {ibrowse_async_response_timeout, ReqId},
shutting_down(State),
%% do_error_reply(State, req_timedout),
{stop, normal, State}
end;

正在加载...
取消
保存