google-maps icon indicating copy to clipboard operation
google-maps copied to clipboard

MapsAPIGenericEngine uses HttpClient incorrectly

Open stephajn opened this issue 3 years ago • 1 comments

The MapsApiGenericEngine creates a new HttpClient for every request it makes. As a result, under load, this library would burn up all of the available sockets on a machine because it is not reusing the same HttpClient instance.

This class should be updated so that the HttpClient is created once as a static instance instead.

stephajn avatar Sep 08 '22 16:09 stephajn

Right, I believe it used to work differently in older versions.

You're welcome to suggest a pull request.

maximn avatar Sep 08 '22 19:09 maximn