summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2008-10-24 17:46:50 +0100
committerMatthias Radestock <matthias@lshift.net>2008-10-24 17:46:50 +0100
commitd7343c5d7fd97dad9d1ef75548714f9114ddbe42 (patch)
tree85eacee10f522fd266fec6298d348b487bb033fc
parentb19e4bb8004d35efc9bbc43bdb9c20c111e6a3e2 (diff)
downloadrabbitmq-server-git-d7343c5d7fd97dad9d1ef75548714f9114ddbe42.tar.gz
hibernate buffering_proxies
My tests got stuck after about an hour, and the cause was buffering_proxies holding on to memory
-rw-r--r--src/buffering_proxy.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffering_proxy.erl b/src/buffering_proxy.erl
index 7707e63662..fcb7b412e2 100644
--- a/src/buffering_proxy.erl
+++ b/src/buffering_proxy.erl
@@ -97,4 +97,6 @@ proxy_loop(Ref, Pid, State) ->
waiting -> Pid ! {Ref, [Msg]}, empty;
Messages -> [Msg | Messages]
end)
+ after ?HIBERNATE_AFTER ->
+ erlang:hibernate(?MODULE, proxy_loop, [Ref, Pid, State])
end.