mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-07 14:11:46 +00:00
renamed async_switches to switches
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 ;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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 ;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user