• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Is anyone having trouble with keep alive : connexion closed with nginx

AmaZili Communication

Basic Pleskian
Hi,

On one of our servers we have Plesk 12.5 running on Centos 7.2.
Accounts are running php-fpm thru nginx. HTTP/2 is enabled.

Our custom config directives includes :

Code:
keepalive_timeout 65;
keepalive_requests 100000;

but checking the websites with :

https://headers.cloxy.net/

We get :

Code:
    HTTP/1.1 200 OK
    Server: nginx
    Date: Sun, 02 Oct 2016 12:00:16 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: close
    Vary: Accept-Encoding
    X-Powered-By: PHP/7.0.11
    Set-Cookie: PHPSESSID=5naqvp7gmdtbi94gs602433ko1; expires=Sun, 09-Oct-2016 12:00:16 GMT; Max-Age=604800; path=/; HttpOnly
    Cache-Control: max-age=604800
    Expires: Sun, 09 Oct 2016 12:00:16 GMT
    Last-Modified: Sun, 02 Oct 2016 12:00:16 GMT
    Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
    Pragma: public
    Cache-Control: public, must-revalidate, proxy-revalidate
    X-UA-Compatible: IE=edge,chrome=1

which says connection closed, that is also verified using :

https://www.webpagetest.org/
https://www.webpagetest.org/
Which says :

Code:
F
Keep-alive Enabled

Any idea about enabling properly keepalive connexions ?

Thanks for your guess.
 
Hi AmaZili Communication,

you seem to misunderstand the "keep-alive" - settings, because you seem to think, that client-to-server connections will stay opened untill the maximum defined setting is reached. Nginx needs to close connections from time to time, even if you configure nginx to allow infinite keep-alive-timeouts and a huge amount of acceptable requests per connection, to return results and as well errors and success messages. You tested for example a website and seem to be surprised, that the result is a shown "connection closed" result, but you seem to miss the fact, that your request to test the website has been FINISHED, when you see the individual test - result - page. ;)
 
Back
Top