Welcome! Log In Create A New Profile

Advanced

Re: Option to disable buffering in uwsgi module

August 04, 2011 06:46AM
On Thu, Aug 04, 2011 at 01:32:14PM +0300, Peter Smit wrote:
> (This is my first message to this list, please let me know if I'm
> doing something wrong!)
>
> In developing a comet style application in a uwsgi/nginx setup I
> noticed that nginx always buffers the response when uwsgi_pass is
> used.
>
> I'm not sure or there is any particular reason why this is done,
> except for the fact that the uwsgi code is originally based on the
> fastcgi module where indeed buffering is unavoidable. I think however
> that it makes sense to give the option of disabling buffering with
> uwsgi.
>
> I actually already went ahead and wrote a patch that does exactly
> this. It introduces a uwsgi_buffering flag and now adheres to the
> "X-Accel-Buffering" header. I have only limited capabilities to test
> this patch, but for me it does exactly that, disabling the buffer.
>
> Could some of you review this patch and if it is ok, could it be
> introduced in nginx?
>
> I made the patch on the 1.1.0 source. I attached it and included it
> inline below this message. Let me know if I should give it in a
> different format.

Thank you for idea, it seems unbuffered proxying should work for uwsgi
as well as for scgi, since they both use simple protocol, that is, no
protocol at all :) for body.


--
Igor Sysoev

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Option to disable buffering in uwsgi module Attachments

Peter Smit 3968 August 04, 2011 06:40AM

Re: Option to disable buffering in uwsgi module

Igor Sysoev 1482 August 04, 2011 06:46AM

Re: Option to disable buffering in uwsgi module Attachments

Peter Smit 1005 September 23, 2011 02:26AM

Re: Option to disable buffering in uwsgi module

Maxim Dounin 1023 September 23, 2011 06:32AM

Re: Option to disable buffering in uwsgi module

Peter Smit 1112 September 23, 2011 06:52AM

Re: Option to disable buffering in uwsgi module

Maxim Dounin 1033 September 23, 2011 07:08AM

Re: Option to disable buffering in uwsgi module

Peter Smit 953 September 30, 2011 04:08AM

[PATCH] Option to disable buffering in uwsgi module

Peter Smit 1138 September 30, 2011 06:02AM

Re: [PATCH] Option to disable buffering in uwsgi module

Maxim Dounin 979 September 30, 2011 06:18AM

Re: [PATCH] Option to disable buffering in uwsgi module

Peter Smit 1131 September 30, 2011 06:22AM

Re: [PATCH] Option to disable buffering in uwsgi module

Maxim Dounin 1211 September 30, 2011 08:04AM

Re: Option to disable buffering in uwsgi module

Maxim Dounin 1153 September 30, 2011 06:06AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 316
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready