diff options
author | Benoit Foucher <benoit@zeroc.com> | 2016-09-16 15:15:20 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2016-09-16 15:15:20 +0200 |
commit | 682c207665523731c3f64fcd83551a846dc11477 (patch) | |
tree | b8e88267710c4d48d2c5b848b86a8e1bbd758c62 /csharp/src | |
parent | Removed double About on OS X (diff) | |
download | ice-682c207665523731c3f64fcd83551a846dc11477.tar.bz2 ice-682c207665523731c3f64fcd83551a846dc11477.tar.xz ice-682c207665523731c3f64fcd83551a846dc11477.zip |
Fix for ICE-7357 - catch exceptions raised by connection getInfo
Diffstat (limited to 'csharp/src')
-rw-r--r-- | csharp/src/Ice/Incoming.cs | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/csharp/src/Ice/Incoming.cs b/csharp/src/Ice/Incoming.cs index 19d558f1da7..e6a0e95c377 100644 --- a/csharp/src/Ice/Incoming.cs +++ b/csharp/src/Ice/Incoming.cs @@ -227,12 +227,19 @@ namespace IceInternal output.print("\noperation: " + current_.operation); if(current_.con != null) { - Ice.ConnectionInfo connInfo = current_.con.getInfo(); - if(connInfo is Ice.IPConnectionInfo) + try { - Ice.IPConnectionInfo ipConnInfo = (Ice.IPConnectionInfo)connInfo; - output.print("\nremote host: " + ipConnInfo.remoteAddress + " remote port: " + - ipConnInfo.remotePort.ToString()); + Ice.ConnectionInfo connInfo = current_.con.getInfo(); + if(connInfo is Ice.IPConnectionInfo) + { + Ice.IPConnectionInfo ipConnInfo = (Ice.IPConnectionInfo)connInfo; + output.print("\nremote host: " + ipConnInfo.remoteAddress + " remote port: " + + ipConnInfo.remotePort.ToString()); + } + } + catch(Ice.LocalException) + { + // Ignore. } } output.print("\n"); |