need to find a way to better manage write errors...

This commit is contained in:
Roberto De Ioris
2013-01-20 10:32:02 +01:00
parent e1316153be
commit 37e153d5de
14 changed files with 35 additions and 127 deletions
-7
View File
@@ -9,12 +9,6 @@ extern struct http_status_codes hsc[];
extern PyTypeObject uwsgi_InputType;
void python_simple_hook_write_string(struct wsgi_request *wsgi_req, PyObject *str) {
UWSGI_RELEASE_GIL
wsgi_req->response_size += wsgi_req->socket->proto_write(wsgi_req, PyString_AsString(str), PyString_Size(str));
UWSGI_GET_GIL
}
void uwsgi_opt_pythonpath(char *opt, char *value, void *foobar) {
int i;
@@ -257,7 +251,6 @@ pep405:
up.wsgi_spitout = PyCFunction_New(uwsgi_spit_method, NULL);
up.wsgi_writeout = PyCFunction_New(uwsgi_write_method, NULL);
up.hook_write_string = python_simple_hook_write_string;
up.hook_wsgi_input_read = uwsgi_python_hook_simple_input_read;
up.hook_wsgi_input_readline = uwsgi_python_hook_simple_input_readline;