Skip to content

Commit ff0050b

Browse files
Merge pull request #528 from crypto-chassis/misc
misc
2 parents f97c786 + 325cbc5 commit ff0050b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

include/ccapi_cpp/ccapi_session.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,8 @@ class Session {
856856
std::map<std::string, std::shared_ptr<Service>>& serviceByExchangeMap = this->serviceByServiceNameExchangeMap.at(serviceName);
857857
const auto& exchange = request.getExchange();
858858
if (serviceByExchangeMap.find(exchange) == serviceByExchangeMap.end()) {
859-
this->onError(Event::Type::REQUEST_STATUS, Message::Type::REQUEST_FAILURE, "please enable exchange: " + exchange, eventQueuePtr);
859+
this->onError(Event::Type::REQUEST_STATUS, Message::Type::REQUEST_FAILURE, "please enable exchange: " + exchange + " for request " + toString(request),
860+
eventQueuePtr);
860861
return;
861862
}
862863
std::shared_ptr<Service> servicePtr = serviceByExchangeMap.at(exchange);

include/ccapi_cpp/ccapi_session_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class SessionOptions {
5353
int httpMaxNumRetry{1};
5454
int httpMaxNumRedirect{1};
5555
long httpRequestTimeoutMilliseconds{10000};
56-
int httpConnectionPoolMaxSize{1}; // used to set the maximal number of http connections to be kept in the pool (connections in the pool are idle)
56+
int httpConnectionPoolMaxSize{2}; // used to set the maximal number of http connections to be kept in the pool (connections in the pool are idle)
5757
long httpConnectionKeepAliveTimeoutSeconds{
5858
10}; // used to remove a http connection from the http connection pool if it has stayed idle for at least this amount of time
5959
bool enableOneHttpConnectionPerRequest{}; // create a new http connection for each request

0 commit comments

Comments
 (0)