From e304e3492941f7494fe66cfb84cfdacd6e82f5d0 Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Wed, 1 Jun 2011 07:11:54 +0200 Subject: [PATCH] throw exception on too much big spool requests --- plugins/python/uwsgi_pymodule.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/python/uwsgi_pymodule.c b/plugins/python/uwsgi_pymodule.c index a941e77f..5e92b805 100644 --- a/plugins/python/uwsgi_pymodule.c +++ b/plugins/python/uwsgi_pymodule.c @@ -1192,8 +1192,7 @@ PyObject *py_uwsgi_send_spool(PyObject * self, PyObject * args, PyObject *kw) { } else { Py_DECREF(zero); - Py_INCREF(Py_None); - return Py_None; + return PyErr_Format(PyExc_ValueError, "spooler packet cannot be more than %d bytes", uwsgi.buffer_size); } } else {