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

camge is83070 at cis.nctu.edu.tw
Mon Sep 29 10:26:02 EST 2003


>----- Original Message ----- 
>From: "Gregory (Grisha) Trubetskoy" <grisha at modpython.org>
>
> Interesting...
>
> If you could change filterobject.c, around line 223, where the code looks
> like:
>
>        if (! APR_STATUS_IS_SUCCESS(self->rc)) {
>             PyErr_SetObject(PyExc_IOError,
>                             PyString_FromString("Input filter read
error"));
>             return NULL;
> To:
>
>        if (! APR_STATUS_IS_SUCCESS(self->rc)) {
>             PyErr_Format(PyExc_IOError, "Input filter read error: %d",
>                          self->rc);
>             return NULL;
>
> This will log the actual return code that Apache is returning on this
> error, it might give us more information on what is really going on there.
>
> Thanks,
>
> Grisha
>
Hi Grisha,

    Below is the error message and error code is 730035.
----------------------------------------------------------------------------
------------------------------------------------------
[Mon Sep 29 10:23:56 2003] [notice] Parent: Created child process 2496
[Mon Sep 29 10:23:57 2003] [notice] Child 2496: Child process is running
[Mon Sep 29 10:23:57 2003] [notice] Child 2496: Acquired the start mutex.
[Mon Sep 29 10:23:57 2003] [notice] Child 2496: Starting 250 worker threads.
[Mon Sep 29 10:24:04 2003] [error] [client 211.79.36.248] inputfilter
cameoInputFilter: Traceback (most recent call last):
[Mon Sep 29 10:24:04 2003] [error] [client 211.79.36.248] inputfilter
cameoInputFilter:   File "C:\Program
Files\WebSite\lib\python22\lib\site-packages\mod_python\apache.py", line
222, in FilterDispatch
    object(filter)
[Mon Sep 29 10:24:04 2003] [error] [client 211.79.36.248] inputfilter
cameoInputFilter:   File "C:/Program
Files/WebSite/httpd/CameoMobileSpace\cameoInputFilter.py", line 9, in
inputfilter
    strBody = filter.read()
[Mon Sep 29 10:24:04 2003] [error] [client 211.79.36.248] inputfilter
cameoInputFilter: IOError: Input filter read error: 730035



More information about the Mod_python mailing list