Dropped https client connection doesn't drop backend proxy_pass connection

dgobaud nginx-forum at nginx.us
Tue Jul 14 16:43:53 UTC 2015


I also just tested regular http and it is having the same problem.

dgobaud Wrote:
-------------------------------------------------------
> Don't think so - config is below and the relevant url is
> /dashboard_stream
> 
>       upstream my_app {
>         server unix:///var/run/puma/my_app.sock;
>       }
> 
>       server {
>         listen 80;
>         server_name _ localhost; # need to listen to localhost for
> worker tier
> 
>         if ($http_x_forwarded_proto = "http") { return 301
> https://$host$request_uri; }
> 
>         location / {
>           proxy_pass http://my_app; # match the name of upstream
> directive which is defined above
>           proxy_set_header Host $host;
>           proxy_set_header X-Forwarded-For
> $proxy_add_x_forwarded_for;
>         }
> 
>         location /dashboard_stream {
>           proxy_pass http://my_app; # match the name of upstream
> directive which is defined above
>           proxy_set_header Host $host;
>           proxy_set_header X-Forwarded-For
> $proxy_add_x_forwarded_for;
>           proxy_buffering off;
>           proxy_cache off;
>           proxy_http_version 1.1;
>         }
>       }
> 
> Valentin V. Bartenev Wrote:
> -------------------------------------------------------
> > On Monday 13 July 2015 12:02:44 dgobaud wrote:
> > > Any update on this? Seeing this problem with nginx leaving
> > connections open
> > > on AWS Beanstalk using nginx to proxy to puma/ruby on rails.
> > [..]
> > 
> > Do you have cache or proxy store configured?
> > 
> >   wbr, Valentin V. Bartenev
> > 
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx

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



More information about the nginx mailing list