Open thekid opened 6 years ago
Saw this today in a header enumeration:
"Keep-Alive": "timeout=5, max=99"
https://tools.ietf.org/id/draft-thomson-hybi-http-timeout-01.html#rfc.section.2 https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive
Non-standard, but seems to have widespread support; we should consider this in the future.
I think this is ready to get some real-life exposure; this could go into applications as:
"require" : {
"xp-framework/http": "dev-feature/keep-alive as 9.1.0"
}
Improves performance of
peer.http.SocketHttpTransport
by implementing keep-alive semantics.Performance
Same script as in #21, 100 queries using the Neo4J REST API:
Usage
Users need to pass the keep-alive header explicitely, for example as follows: