mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
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
This commit is contained in:
parent
17607ecaa4
commit
787e078f6a
@ -753,7 +753,7 @@ process_buffered_request(Reply, StateName, StateData) ->
|
|||||||
Request, StateName,
|
Request, StateName,
|
||||||
StateData#state{unprocessed_req_list = NewRequests});
|
StateData#state{unprocessed_req_list = NewRequests});
|
||||||
_ ->
|
_ ->
|
||||||
{reply, Reply, StateName, StateData}
|
{reply, Reply, StateName, StateData, hibernate}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
handle_http_put(Sid, Rid, Attrs, Payload, PayloadSize, StreamStart, IP) ->
|
handle_http_put(Sid, Rid, Attrs, Payload, PayloadSize, StreamStart, IP) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user