diff options
author | Matthias Radestock <matthias@lshift.net> | 2008-10-24 17:46:50 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@lshift.net> | 2008-10-24 17:46:50 +0100 |
commit | 271b083cc309bc300448ca1e2d5aa7fca8a8497f (patch) | |
tree | 85eacee10f522fd266fec6298d348b487bb033fc | |
parent | ab2e0c53e85c60f0f2c9b02ad00d7c88f61cdb81 (diff) | |
download | rabbitmq-server-271b083cc309bc300448ca1e2d5aa7fca8a8497f.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.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffering_proxy.erl b/src/buffering_proxy.erl index 7707e636..fcb7b412 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. |