diff options
Diffstat (limited to 'cpp/src/Ice/Connection.cpp')
-rw-r--r-- | cpp/src/Ice/Connection.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/cpp/src/Ice/Connection.cpp b/cpp/src/Ice/Connection.cpp index f30bd36759c..5b39e960feb 100644 --- a/cpp/src/Ice/Connection.cpp +++ b/cpp/src/Ice/Connection.cpp @@ -833,10 +833,25 @@ IceInternal::Connection::Connection(const InstancePtr& instance, { // // Incoming connections play the active role with respect - // to connection validation. + // to connection validation, and are implicitly validated. // + try + { + validateConnection(); + } + catch(const LocalException& ex) + { + if(_warn) + { + Warning out(_logger); + out << "connection exception:\n" << ex << '\n' << _transceiver->toString(); + } + _transceiver->close(); + _state = StateClosed; + ex.ice_throw(); + } + _connectionValidated = true; - validateConnection(); } else { |