Question about upstream keepalive + fastcgi + gzip

Hi,

With the keepalive upstream / fastcgi patch nginx is now capable of
sending
out chunked transfers for content received on fastcgi interface.

Is there anyway to get something like apache’s flushpackets
functionality?

Flushpackets – Determines whether the proxy module will auto-flush the
output brigade after each “chunk” of data.

This would mean setting up an option to send ngx_http_send_special(r,
NGX_HTTP_FLUSH) after every chunk received on fastcgi in order to make
it
pass gzip module as well? Pointers which module to patch
(ngx_http_upstream,
ngx_http_upstream_keepalive_module, ngx_http_fastcgi_module) and where
are
very welcome.

Best regards,

Primoz

Have you tried simply disabling the buffers?
http://wiki.nginx.org/HttpFcgiModule#fastcgi_buffers

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,217544,217548#msg-217548

Hi,

This brings with itself too much of a performance penalty. I would just
like
to have the behaviour I get in the latest versions without using gzip
replicated when using gzip. As everything works like a charm when making
a
test case using echo_flush, gzip is obviously ready, so just need a
pointer
where to go (upstream, upstream-keepalive of fastcgi).

Best regards,

Primoz

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs