From 0ddf0d10a59dd66245ce3adb25ef078bb80cb062 Mon Sep 17 00:00:00 2001 From: Pablo Polvorin Date: Thu, 4 Feb 2010 18:55:43 +0000 Subject: [PATCH] Hibernate http-bind process after handling a request. When using BOSH, this reduces memory consuption of the http-bind process, with negligible CPU impact. SVN Revision: 2960 --- src/web/ejabberd_http_bind.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/ejabberd_http_bind.erl b/src/web/ejabberd_http_bind.erl index ec3a127ec..a580ba004 100644 --- a/src/web/ejabberd_http_bind.erl +++ b/src/web/ejabberd_http_bind.erl @@ -751,7 +751,7 @@ process_buffered_request(Reply, StateName, StateData) -> Request, StateName, StateData#state{unprocessed_req_list = NewRequests}); _ -> - {reply, Reply, StateName, StateData} + {reply, Reply, StateName, StateData, hibernate} end. handle_http_put(Sid, Rid, Attrs, Payload, PayloadSize, StreamStart, IP) ->