From 7264706c21a2533bc3244d01c168085614d13968 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Fri, 17 Jul 2009 23:58:35 +0000 Subject: update ibrowse to 1.5.1+ git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@795278 13f79535-47bb-0310-9956-ffa450edef68 --- src/ibrowse/ibrowse_lb.erl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/ibrowse/ibrowse_lb.erl') diff --git a/src/ibrowse/ibrowse_lb.erl b/src/ibrowse/ibrowse_lb.erl index b0654b72..9c2165b0 100644 --- a/src/ibrowse/ibrowse_lb.erl +++ b/src/ibrowse/ibrowse_lb.erl @@ -151,7 +151,13 @@ handle_info({'EXIT', Pid, _Reason}, ets:match_delete(Tid, {{'_', Pid}, '_'}), {noreply, State#state{num_cur_sessions = Cur - 1}}; -handle_info({trace, Bool}, State) -> +handle_info({trace, Bool}, #state{ets_tid = Tid} = State) -> + ets:foldl(fun({{_, Pid}, _}, Acc) when is_pid(Pid) -> + catch Pid ! {trace, Bool}, + Acc; + (_, Acc) -> + Acc + end, undefined, Tid), put(my_trace_flag, Bool), {noreply, State}; -- cgit v1.2.3