Proxygen http client using a connection pool (keep-alive)

577 Views Asked by At

I am writing a proxygen server that needs to make http request to other service. I would like to have a connection pool to this other service (using keep-alive), and whenever I need to make a request to this service, I would like to peak one of those connections and issue a request. Then, after the request is finished, return this connection to the pool so it can be reused. I read the curl client in the examples of the proxygen project, but this only makes one request and close the connection. Can anyone give me some insights on how to make an http client that handles a connection pool using proxygen/folly ? Does proxygen/folly have a way of handling connection pools ? In that case where can I read about it ?

thanks in advance

0

There are 0 best solutions below