Make WordPress Core

Opened 17 months ago

Last modified 17 months ago

#57768 new enhancement

avoid creating tcp connection every time

Reported by: sophygsf's profile sophygsf Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: performance Cc:


Every time when I send a php request of page , initial connect value will over 700ms but the Waiting for server response just 500ms even though the same uri. Does it mean creating a new tcp connection every time? The request has setted header with Keep-Alive: timeout=5, max=100 and response setted Connection: Keep-Alive but seen invalid. How Can I avoid initial connection each time?
Thank you for your time!

Change History (1)

#1 @oglekler
17 months ago

  • Component changed from Help/About to General
  • Focuses performance added

Hi @sophygsf,

can you provide a background of what you are doing/investigating? It isn't clear if your question is related to WordPress at all, or is about server settings and existing protocols limitations. WordPress (or any PHP script) is not handling network and security protocols, we can set headers and this is our limit.

This Trac is for improving and developing WordPress itself and if your issue is beyond it, the ticket should be closed as invalid, if there is something you see it's possible to improve in the WordPress itself to achieve better performance, we need clear understanding of the issue.

"Connection: Keep-Alive" is indeed invalid for HTTP/2 and HTTP/3 protocols.
The major advantage of h2 protocol is an ability to get multiple files simultaneously, so, even if we are spending additional time to establish a secure connection, it should benefit in speed as the result.

I don't see how the question is connected to Help/About component of the WordPress, either, so, I will remove it.

Note: See TracTickets for help on using tickets.