Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
J4pClient does not support server failures #14
While having a J4pClient which sends periodic requests on a server, I restarted that server.
20:27:30.062 [main] ERROR c.b.metrics.harvest.HarvestMetrics - Error - cannot harvest metric
This error typically occurs in multi threaded environments, but can happen if a response is not properly consumed. Thanks for spotting this. I fixed this by
a) making sure that the response is consumed (and the connection released) even in an error case
Expect this for version 0.81, I still need some tuning for allowing to select the connection manager (and other parameters like timeouts) during construction of the client.
Pushed changes to GIT and extended the construction of the J4pClient with a builder for tuning various parameters like timeouts. By default, the threadsafe connection manager is used now