From 8f2202eab5fae002d689a62801efbd0e18853d43 Mon Sep 17 00:00:00 2001 From: Roberto De Ioris Date: Mon, 21 Jan 2013 12:13:32 +0100 Subject: [PATCH] reset cores/requests on worker startup --- core/master_utils.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/master_utils.c b/core/master_utils.c index 73009ea9..6b1acacf 100644 --- a/core/master_utils.c +++ b/core/master_utils.c @@ -555,6 +555,11 @@ int uwsgi_respawn_worker(int wid) { // reset the apps count with a copy from the master uwsgi.workers[uwsgi.mywid].apps_cnt = uwsgi.workers[0].apps_cnt; + // reset wsgi_request structures + for(i=0;i