daurnimator / lua-http

HTTP Library for Lua. Supports HTTP(S) 1.0, 1.1 and 2.0; client and server.
https://daurnimator.github.io/lua-http/
MIT License
798 stars 82 forks source link

Client connection pooling #10

Open daurnimator opened 8 years ago

daurnimator commented 8 years ago

Should probably be done at the http.client level?

Need a 'multi-key' cache structure that allows us to index by a tuple of host, port, version, tls context, etc.

Need a way to know when connection is unused to add it back to a pool. EDIT: Now have connection:onidle

Misc things:

daurnimator commented 6 years ago

Curl's implementation: