diff options
author | Marc Laukien <marc@zeroc.com> | 2002-07-01 18:03:44 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-07-01 18:03:44 +0000 |
commit | 35486b505c44e937115759d29ecf12ca470951d5 (patch) | |
tree | 0cec36d62b0d08465598b79e5c207568daf6602e /java/src/IceInternal/Connection.java | |
parent | Added additional check to make sure that no exception is mentioned more (diff) | |
download | ice-35486b505c44e937115759d29ecf12ca470951d5.tar.bz2 ice-35486b505c44e937115759d29ecf12ca470951d5.tar.xz ice-35486b505c44e937115759d29ecf12ca470951d5.zip |
validation fixes
Diffstat (limited to 'java/src/IceInternal/Connection.java')
-rw-r--r-- | java/src/IceInternal/Connection.java | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/java/src/IceInternal/Connection.java b/java/src/IceInternal/Connection.java index 8d37fbfb35c..b168179422f 100644 --- a/java/src/IceInternal/Connection.java +++ b/java/src/IceInternal/Connection.java @@ -746,11 +746,25 @@ public final class Connection extends EventHandler if(_adapter != null) { // - // Incoming connections play the active role with - // respect to connection validation. + // Incoming connections play the active role with respect + // to connection validation, and are implicitly validated. // + try + { + validateConnection(); + } + catch(Ice.LocalException ex) + { + if(_warn) + { + warning("connection exception", ex); + } + _transceiver.close(); + _state = StateClosed; + throw ex; + } + _connectionValidated = true; - validateConnection(); } else { |