On Mon, Nov 1, 2010 at 7:58 AM, Mark <mark.sundst...@gmail.com> wrote:
> Changeset [14394], which introduced the HttpRequest.read feature,
> breaks my Django project running behind CherryPy 3.1.2 on Python 2.7
> -- it hangs when trying to read request.POST data, specifically at:
>
> django/http/__init__.py, line 144: self._raw_post_data = self.read()
>
> Django development server works fine, and I confirmed that both worked
> fine under revision 14393.
>
> In the development server, wsgi.input is
> django.core.handlers.wsgi.LimitedStream, while under CherryPy,
> wsgi.input is cherrypy.wsgiserver.SizeCheckWrapper.
>
> In revisions prior to 14394, SizeCheckWrapper.read is called with
> CONTENT_LENGTH as the argument. In 14394, it is called with no
> argument, leading to a default for size of -1 and apparently to the
> hang. In 14394, if I pass CONTENT_LENGTH as the argument, it all seems
> to work as before.
>
> I am using admin login in my testing; I think this problem would occur
> any time there is POST data present.
>
> I do not have a good understanding of either the Django code in this
> area, nor the CherryPy code, so I don't know whether a fix could or
> should be supplied in Django, or CherryPy, or both. I am hoping
> someone with better knowledge can take a look at this. I would be glad
> to open on a ticket on this if appropriate.

Sounds like a ticket is called for.

To aid the debugging process, if you can provide a complete standalone
example (or at least a complete set of duplication instructions), that
would be most helpful.

Yours,
Russ Magee %-)

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

Reply via email to