summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Reference.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-06-28 21:02:58 +0000
committerMarc Laukien <marc@zeroc.com>2004-06-28 21:02:58 +0000
commitfc70a0e50510c4c630e2b2974d02a121713b988d (patch)
tree4301639291abe374be826e83d002bae9cf1da996 /cpp/src/Ice/Reference.cpp
parentCosmetic fixes. (diff)
downloadice-fc70a0e50510c4c630e2b2974d02a121713b988d.tar.bz2
ice-fc70a0e50510c4c630e2b2974d02a121713b988d.tar.xz
ice-fc70a0e50510c4c630e2b2974d02a121713b988d.zip
compression fix
Diffstat (limited to 'cpp/src/Ice/Reference.cpp')
-rw-r--r--cpp/src/Ice/Reference.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/Ice/Reference.cpp b/cpp/src/Ice/Reference.cpp
index 6752226703c..e8df567dede 100644
--- a/cpp/src/Ice/Reference.cpp
+++ b/cpp/src/Ice/Reference.cpp
@@ -641,7 +641,7 @@ IceInternal::Reference::changeDefault() const
}
ConnectionPtr
-IceInternal::Reference::getConnection() const
+IceInternal::Reference::getConnection(bool& compress) const
{
ConnectionPtr connection;
@@ -678,6 +678,7 @@ IceInternal::Reference::getConnection() const
}
assert(p != connections.end());
connection = *p;
+ compress = (*p)->endpoint()->compress();
}
else
{
@@ -716,7 +717,7 @@ IceInternal::Reference::getConnection() const
try
{
OutgoingConnectionFactoryPtr factory = instance->outgoingConnectionFactory();
- connection = factory->create(filteredEndpts);
+ connection = factory->create(filteredEndpts, compress);
assert(connection);
}
catch(const LocalException& ex)