HttpConnectionPool::shutdown not thread safe
void
HttpConnectionPool::shutdown(const HttpConnectionPtr& connection) {
connections_.remove(connection);
connection->shutdown();
}
the remove call must be in critical section (protected by instance mutex).
Edited by Razvan Becheriu