execution of post_action each time breaks a keepalive connection to upstream

Maxim Dounin mdounin at mdounin.ru
Thu May 7 12:30:31 UTC 2015


Hello!

On Thu, May 07, 2015 at 12:51:33PM +0200, Sergey Brester wrote:

> Hi all,
> 
> I've found that use of "post_action @named_post" always (each time) closes a
> upstream connection (despite of keepalive).

In short:

- post_action is a dirty hack and undocumented on purpose, avoid 
  using it;

- as long as an upstream response is complete after receiving a 
  header, upstream keepalive should work even with post_action; it 
  might be tricky to ensure this with fastcgi though.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx-devel mailing list