standardized uwsgi.disconnect()

This commit is contained in:
Unbit
2013-06-09 22:47:44 +02:00
parent 4a07632569
commit a8505be6c0
4 changed files with 18 additions and 10 deletions
+3 -10
View File
@@ -2270,17 +2270,10 @@ PyObject *py_uwsgi_disconnect(PyObject * self, PyObject * args) {
struct wsgi_request *wsgi_req = py_current_wsgi_req();
#ifdef UWSGI_DEBUG
uwsgi_log("disconnecting worker %d (pid :%d) from session...\n", uwsgi.mywid, uwsgi.mypid);
#endif
uwsgi_disconnect(wsgi_req);
if (wsgi_req->socket) {
wsgi_req->socket->proto_close(wsgi_req);
}
wsgi_req->fd_closed = 1;
Py_INCREF(Py_True);
return Py_True;
Py_INCREF(Py_None);
return Py_None;
}
PyObject *py_uwsgi_parse_file(PyObject * self, PyObject * args) {