each http request cause socket reconnection
I did small test with httpClient.performRequest() where I send couple of requests ti the same http client, unfortunately in the HttpClient::run() method each request will call HttpResponsePtr response = request(args->url, args->verb, args->body, args); which will call createSocket() finction,
So, situation a little bit strange, if I do one performrequest, tcp socket will remain opened, while next performRequest will close socket and open another one to the same connection. Hmm, probably i do something wrong?
One more problem, PerformRequst save pointer in the queue, that mean if i will use the same args, but will change only body and call perform couple of times each arg->body call will discard old value, so only last body will be delivered.
Hope i was clean :)
Sorry for the slow response.
You're right that we aren't reusing the socket connection in the http client, so it isn't very efficient.
For your remark about queues, it seems that if's a different bug.