Thanks Roberto,

We had UWSGI 0.9.6.8 installed first. Now I did an upgrade to 0.9.8
and now everything works perfect.

Thanks a lot for the quick response.



On 14 juin, 15:00, Roberto De Ioris <robe...@unbit.it> wrote:
> Il giorno 14/giu/2011, alle ore 14.54, Jonathan Slenders ha scritto:
>
>
>
>
>
>
>
>
>
> > Hi all,
>
> > Using WSGI on production environment:
>
> > In django.core.handlers.wsgi.py is a clear notice that wsgi.input,
> > which can be an instance of socket._fileobject will hang when reading
> > past the available count.
>
> > In my case, wsgi.input appears to be of the type 'file', so the
> > following test fails, and the input is not wrapped in a LimitedStream.
>
> > -----------------------
> > wsgi.input.__class__
> > <type 'file'>
>
> > wsgi.input.__class__.__name__
> > file
>
> > wsgi.input
> > <open file 'wsgi_input', mode 'r' at 0x9816650>
>
> > socket._fileobject
> > <class 'socket._fileobject'>
>
> > type(socket._fileobject)
> > <type 'type'>
>
> > isinstance(self.environ['wsgi.input'], socket._fileobject)
> > False
>
> > -----------------------
>
> > When I want to read request.raw_post_data, everything hangs.
>
> > It may be worth noting that the CONTENT_LENGTH was zero. (It is sentry
> > in my case who wants to log another error, tries to access
> > raw_post_data, and blocks instead of returning a proper 500 error
> > page.)
> > This is probably a bug in Django, but I'm not sure where exactly.
>
> Even if the read() and read(-1) are controversial, the popular consensus is 
> on having the WSGI server to
> gracefully manages it.
>
> uWSGI 0.9.8 uses the same approach of mod_wsgi (it creates a custom object 
> for wsgi.input), so you are using a old uWSGI version
> or i did not understand your question :)
>
>
>
> > By the way, it would also be great if anybody knows how to use pdb
> > statements, while running uwsgi on the console.
>
> Look here,http://lists.unbit.it/pipermail/uwsgi/2011-April/001769.html
>
> the same is valid for pratically all of the other WSGI daemons out there.
>
> --
> Roberto De Iorishttp://unbit.it

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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