summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/ConnectionI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Ice/ConnectionI.cpp b/cpp/src/Ice/ConnectionI.cpp
index 4fa3c4fe8bd..13d107d238e 100644
--- a/cpp/src/Ice/ConnectionI.cpp
+++ b/cpp/src/Ice/ConnectionI.cpp
@@ -1589,7 +1589,8 @@ Ice::ConnectionI::ConnectionI(const InstancePtr& instance,
_nextRequestId(1),
_requestsHint(_requests.end()),
_asyncRequestsHint(_asyncRequests.end()),
- _batchAutoFlush(_instance->initializationData().properties->getPropertyAsInt("Ice.BatchAutoFlush") > 0),
+ _batchAutoFlush(
+ _instance->initializationData().properties->getPropertyAsIntWithDefault("Ice.BatchAutoFlush", 1) > 0),
_batchStream(_instance.get(), _batchAutoFlush),
_batchStreamInUse(false),
_batchRequestNum(0),