Explorar el Código

Merge pull request #120 from divolgin/fix

Fix failing requests when ibrowse_lb process does not stop gracefully.
pull/125/head
Chandrashekhar Mullaparthi hace 10 años
padre
commit
e18ea912b6
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. +4
    -1
      src/ibrowse_lb.erl

+ 4
- 1
src/ibrowse_lb.erl Ver fichero

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

Cargando…
Cancelar
Guardar