]> granicus.if.org Git - ejabberd/commitdiff
Hibernate http-bind process after handling a request.
authorPablo Polvorin <pablo.polvorin@process-one.net>
Thu, 4 Feb 2010 18:55:43 +0000 (18:55 +0000)
committerBadlop <badlop@process-one.net>
Fri, 5 Feb 2010 12:30:27 +0000 (13:30 +0100)
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

index 43fd9ecfd53d51b982155ece4a24930470875959..c76125c3c85e07a18c501c517c728f977f28aba9 100644 (file)
@@ -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) ->