浏览代码

Merge pull request #120 from divolgin/fix

Fix failing requests when ibrowse_lb process does not stop gracefully.
pull/125/head
Chandrashekhar Mullaparthi 10 年前
父节点
当前提交
e18ea912b6
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      src/ibrowse_lb.erl

+ 4
- 1
src/ibrowse_lb.erl 查看文件

@ -216,7 +216,10 @@ handle_info(_Info, State) ->
%% Description: Shutdown the server
%% Returns: any (ignored by gen_server)
%%--------------------------------------------------------------------
terminate(_Reason, _State) ->
terminate(_Reason, #state{host = Host, port = Port}) ->
% Use delete_object instead of delete in case another process for this host/port
% has been spawned, in which case will be deleting the wrong record because pid won't match.
ets:delete_object(ibrowse_lb, #lb_pid{host_port = {Host, Port}, pid = self()}),
ok.
%%--------------------------------------------------------------------

正在加载...
取消
保存