• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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