Ver a proveniência

Merge pull request #62 from Mistagrooves/master

Ibrowse_lb process shuts down before all the connections are closed.
pull/63/merge
Chandrashekhar Mullaparthi há 13 anos
ascendente
cometimento
21b559db75
1 ficheiros alterados com 4 adições e 5 eliminações
  1. +4
    -5
      src/ibrowse_lb.erl

+ 4
- 5
src/ibrowse_lb.erl Ver ficheiro

@ -173,14 +173,13 @@ handle_info({'EXIT', Pid, _Reason},
ets_tid = Tid} = State) ->
ets:match_delete(Tid, {{'_', Pid}, '_'}),
Cur_1 = Cur - 1,
State_1 = case Cur_1 of
case Cur_1 of
0 ->
ets:delete(Tid),
State#state{ets_tid = undefined};
class="p">{ class="n">noreply class="p">, State#state{ets_tid = undefined, num_cur_sessions = 0}, 10000};
_ ->
State
end,
{noreply, State_1#state{num_cur_sessions = Cur_1}, 10000};
{noreply, State#state{num_cur_sessions = Cur_1}}
end;
handle_info({trace, Bool}, #state{ets_tid = undefined} = State) ->
put(my_trace_flag, Bool),

Carregando…
Cancelar
Guardar