-   Linux - Server (
-   -   apache2 mod_python.publisher upload problem (

gd2shoe 06-28-2007 10:32 PM

apache2 mod_python.publisher upload problem
I'm having an issue with mod_python on a custom app that I designed. I'm posting here because I just became fairly confident that this problem has nothing to do with my code. I set "PythonDebug on" in order to get a stack trace.

This only seems to happen on Internet explorer (version 6 sp2, don't have 7 handy right now). This has not occurred on firefox.

The when uploading a file as part of a form, through POST, the page eventually times out and gives this error:


Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/", line 299, in HandlerDispatch
    result = object(req)

  File "/usr/lib/python2.4/site-packages/mod_python/", line 213, in handler
    published = publish_object(req, object)

  File "/usr/lib/python2.4/site-packages/mod_python/", line 411, in publish_object
    req.form = util.FieldStorage(req, keep_blank_values=1)

  File "/usr/lib/python2.4/site-packages/mod_python/", line 147, in __init__
    self.read_to_boundary(req, boundary, None)

  File "/usr/lib/python2.4/site-packages/mod_python/", line 238, in read_to_boundary
    line = req.readline(readBlockSize)

IOError: Client read error (Timeout?)

Note that the stack trace does NOT go through any of my code. This is all mod_python.

This is not consistent behavior. The file will sometimes upload just fine. Typically, it can be convinced to work by selecting "back" and then submitting again.

I am working with a client on this one, and need to understand this quickly (hence posting here). If I do not solve this before I leave work today, I really should fix it first thing tomorrow.

Apache version: 2.2.3-4
mod_python version: 3.2.10-4

Thank you in advance to anybody who replies.

All times are GMT -5. The time now is 05:41 PM.