EM::HttpRequest connection pool
yaghmr opened this issue · comments
Is possible to create a EM::HttpRequest connection pool to one particular host?
You could use keep alive with pipelining to fire off several requests over the same connection, however you need the service you are connecting to to support keep-alive/pipelining
That said I don't think you can have a pool for http requests as they are intended to be stateless and the connection is typically closed and renegotiated for new requests.
If you control both the client and server you could in theory use spdy to enable connection reuse. The protocol supports multiplexing so one spdy connection would be able to serve all of your requests. However a spdy connection is susceptible to head of line blocking at the tcp layer.
Thanks for your detailed explanation