renamed async_switches to switches

This commit is contained in:
roberto@fiorenzo
2010-10-04 17:51:22 +02:00
parent 7e40c902e6
commit 17e2dbf85b
5 changed files with 5 additions and 5 deletions
-2
View File
@@ -438,8 +438,6 @@ struct wsgi_request * async_loop() {
uwsgi.wsgi_req = wsgi_req ;
wsgi_req->async_status = (*uwsgi.shared->hooks[wsgi_req->uh.modifier1]) (wsgi_req);
wsgi_req->async_switches++;
if (wsgi_req->async_status < UWSGI_AGAIN) {
return wsgi_req;
}
+1 -1
View File
@@ -104,7 +104,7 @@ void log_request(struct wsgi_request *wsgi_req) {
wsgi_req->status,
wsgi_req->header_cnt,
wsgi_req->headers_size,
wsgi_req->async_switches, wsgi_req->async_id);
wsgi_req->switches, wsgi_req->async_id);
logvec[logvecpos].iov_base = logpkt ;
logvec[logvecpos].iov_len = rlen ;
+1 -1
View File
@@ -85,7 +85,7 @@ inline static void u_green_schedule_to_req(struct uwsgi_server *uwsgi, struct ws
py_current_frame = tstate->frame;
uwsgi->wsgi_req = wsgi_req;
wsgi_req->async_switches++;
//wsgi_req->async_switches++;
swapcontext(&uwsgi->ugreenmain, uwsgi->ugreen_contexts[wsgi_req->async_id] );
tstate = PyThreadState_GET();
+2 -1
View File
@@ -473,7 +473,8 @@ struct wsgi_request {
int async_waiting_fd;
int async_waiting_fd_type;
int async_waiting_fd_monitored;
int async_switches;
int switches;
time_t async_timeout ;
int async_timeout_expired ;
+1
View File
@@ -299,6 +299,7 @@ int uwsgi_request_wsgi(struct wsgi_request *wsgi_req) {
while ( (*wi->response_subhandler)(wsgi_req) != UWSGI_OK) {
wsgi_req->switches++;
#ifdef UWSGI_ASYNC
if (uwsgi.async > 1) {
return UWSGI_AGAIN;