[mod_python] [help]please give an input filter example ?

Gregory (Grisha) Trubetskoy grisha at modpython.org
Wed Oct 8 23:53:51 EST 2003


On Mon, 29 Sep 2003, camge wrote:

>     Below is the error message and error code is 730035.

This is SOCEWOULDBLOCK (aka EAGAIN). Not sure why it is returned here
since the read should be blocking (as the code specifies APR_BLOCK_READ),
may be its a windows thing, but I added a check for it, which should
eliminate this error:

        if (!APR_STATUS_IS_EAGAIN(self->rc) && !APR_STATUS_IS_SUCCESS(self->rc)) {
            PyErr_SetObject(PyExc_IOError,
	                    PyString_FromString("Input filter read error"));

(You can make this change in your sources, or check out the latest stuff
from CVS)

Grisha


More information about the Mod_python mailing list