istio-ecosystem / authservice

Move OIDC token acquisition out of your app code and into the Istio mesh
Apache License 2.0
217 stars 63 forks source link

Better connection management for http host #214

Open incfly opened 2 years ago

incfly commented 2 years ago

Currently the http.cc https://github.com/istio-ecosystem/authservice/blob/master/src/common/http/http.cc Get Post methods.

Will initiate one connection for every request. The actual usage typically has many requests per host. We are also waiting connection to be teared down correctly before returning the http response.

A first step (subtask) could be changing the way we close the connection, use async_wait plus time out.

We should consider the better connection reuse for http requests.