mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-04 20:51:29 +00:00
improved ready_fd call
This commit is contained in:
@@ -2276,6 +2276,11 @@ PyObject *py_uwsgi_disconnect(PyObject * self, PyObject * args) {
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
PyObject *py_uwsgi_ready_fd(PyObject * self, PyObject * args) {
|
||||
struct wsgi_request *wsgi_req = py_current_wsgi_req();
|
||||
return PyInt_FromLong(uwsgi_ready_fd(wsgi_req));
|
||||
}
|
||||
|
||||
PyObject *py_uwsgi_parse_file(PyObject * self, PyObject * args) {
|
||||
|
||||
char *filename;
|
||||
@@ -2516,6 +2521,8 @@ static PyMethodDef uwsgi_advanced_methods[] = {
|
||||
{"chunked_read", py_uwsgi_chunked_read, METH_VARARGS, ""},
|
||||
{"chunked_read_nb", py_uwsgi_chunked_read_nb, METH_VARARGS, ""},
|
||||
|
||||
{"ready_fd", py_uwsgi_ready_fd, METH_VARARGS, ""},
|
||||
|
||||
{NULL, NULL},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user