From: Pablo Polvorin Date: Thu, 4 Feb 2010 18:55:43 +0000 (+0000) Subject: Hibernate http-bind process after handling a request. X-Git-Tag: v2.1.3~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=787e078f6a9be1b8e6e76d6f07860b35132c858e;p=ejabberd 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 --- diff --git a/src/web/ejabberd_http_bind.erl b/src/web/ejabberd_http_bind.erl index 43fd9ecfd..c76125c3c 100644 --- a/src/web/ejabberd_http_bind.erl +++ b/src/web/ejabberd_http_bind.erl @@ -753,7 +753,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) ->