control-center / serviced

Serviced is a PaaS runtime. It allows users to create, manage and scale services in a uniform way.
Apache License 2.0
125 stars 26 forks source link

CC-4534: Control Center Leaks Connections During Snapshot Deletion #3899

Closed Deer-WarLord closed 1 year ago

Deer-WarLord commented 1 year ago

Leakeg happens somewhere during the response, at the time we have an error we don't close the response body, and the connection is still alive with infinity timeout. The current approach will close the response body in any case that will prevent connection leaking. Also, to ensure that we have only one es client it was wrapped with a singletone.