24 ms·
Unfortunately, depends on the server. Node says this: "Sending a 'Connection: keep-alive' will notify Node.js that the connection to the server should be pers
by tyingq 8y ago
Unfortunately, depends on the server. Node says this:
"Sending a 'Connection: keep-alive' will notify Node.js that the connection to the server should be persisted until the next request."
The article seems to confirm this behavior.
So clients have to account for non RFC compliant servers.
- nvarsj 8y agoAre you sure about that? That seems to violate the http/1.1 RFC. I think the node.js docs are talking about http/1.0 there. http/1.1 uses the "Connection" header to indicate whether to persist the connection.