Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #62 from Mistagrooves/master

Ibrowse_lb process shuts down before all the connections are closed.
  • Loading branch information...
commit 21b559db75a6041f0e5ce5ed7d9d0ca9ca59a26a 2 parents 0005cac + a21fe24
@cmullaparthi authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/ibrowse_lb.erl
View
9 src/ibrowse_lb.erl
@@ -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};
+ {noreply, 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),
Please sign in to comment.
Something went wrong with that request. Please try again.