In our case, I've tracked the problem to the client library we are using, 
ASIHTTPRequest.  The library is occasionally sending an incorrect 
Content-Length when configured to use persistent connections.


On Aug 10, 2010, at 8:47 AM, Roger wrote:

> I'm seeing the same symptoms.  The rate is much lower than 1 in 5 -
> maybe 1 in 100 - but definitely the same error.  Were you guys able to
> make any progress on a solution?
> 
> On Aug 4, 1:17 am, hcarvalhoalves <hcarvalhoal...@gmail.com> wrote:
>> Now that someone else mentioned, yes, I believe we have the same
>> problem.
>> 
>> I run Django thru FastCGI to a Cherokee Web Server, and occasionally,
>> uploads fail to continue (the traceback shows that the code hanged at
>> consuming the input stream, then the connection got reset by the
>> client's browser, raising EOFError).
>> 
>> At first, I filled a bug against Cherokee, but it didn't turned out
>> that we were able to narrow the issue. Now I know it's not related to
>> the web server, as you run Lighttpd.
>> 
>> The only things I can think of are, a bug on FastCGI (Flup), Django,
>> or a bug only triggered when you run Django thru FastCGI.
>> 
>> I've also ran my Django install with SCGI, and with different options
>> (fork / threaded), but the intermittent error persists. SCGI still
>> uses Flup though.
>> 
>> This bug proved to be really, really hard to reproduce or track down.
>> I only get it because I run a SaaS with dozens users uploading photos
>> every day, and some requests happen to fail starting the upload and
>> end 500'ing.
>> 
>> What about filling a ticket against Django?
>> 
>> On 2 ago, 18:49, Eric Chamberlain <e...@rf.com> wrote:
>> 
>>> We have an intermittent problem when uploading files.  About one in five 
>>> uploads fails, when the MultiPartParser receives an HTTP_CONTENT_LENGTH of 
>>> zero.
>> 
>>> We are running Django with lighttpd and fastcgi, has anyone else 
>>> encountered this problem?
>> 
>>> --
>>> Eric Chamberlain
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to