Browse Source

Merge pull request #120 from divolgin/fix

Fix failing requests when ibrowse_lb process does not stop gracefully.
pull/125/head
Chandrashekhar Mullaparthi 10 years ago
parent
commit
e18ea912b6
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/ibrowse_lb.erl

+ 4
- 1
src/ibrowse_lb.erl View File

@ -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.
%%--------------------------------------------------------------------

Loading…
Cancel
Save