activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject [23/50] [abbrv] activemq-nms-openwire git commit: Set the socket exception error code to RTSSL_HANDSHAKE_FAILURE. Fixes [AMQNET-502]. (See https://issues.apache.org/jira/browse/AMQNET-502)
Date Wed, 08 Mar 2017 23:12:25 GMT
Set the socket exception error code to RTSSL_HANDSHAKE_FAILURE.
Fixes [AMQNET-502]. (See https://issues.apache.org/jira/browse/AMQNET-502)



Project: http://git-wip-us.apache.org/repos/asf/activemq-nms-openwire/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-nms-openwire/commit/8f10900a
Tree: http://git-wip-us.apache.org/repos/asf/activemq-nms-openwire/tree/8f10900a
Diff: http://git-wip-us.apache.org/repos/asf/activemq-nms-openwire/diff/8f10900a

Branch: refs/heads/1.7.x
Commit: 8f10900a5c11a5ee812b5ae3bb227c97d3a86d09
Parents: 66662a5
Author: Jim Gomes <jgomes@apache.org>
Authored: Wed Jul 8 19:44:54 2015 +0000
Committer: Jim Gomes <jgomes@apache.org>
Committed: Wed Jul 8 19:44:54 2015 +0000

----------------------------------------------------------------------
 src/main/csharp/Transport/Tcp/TcpTransportFactory.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-nms-openwire/blob/8f10900a/src/main/csharp/Transport/Tcp/TcpTransportFactory.cs
----------------------------------------------------------------------
diff --git a/src/main/csharp/Transport/Tcp/TcpTransportFactory.cs b/src/main/csharp/Transport/Tcp/TcpTransportFactory.cs
index 786e4e2..2907a65 100644
--- a/src/main/csharp/Transport/Tcp/TcpTransportFactory.cs
+++ b/src/main/csharp/Transport/Tcp/TcpTransportFactory.cs
@@ -372,7 +372,8 @@ namespace Apache.NMS.ActiveMQ.Transport.Tcp
 
                 if(null == socket)
                 {
-                    throw new SocketException();
+                    const int RTSSL_HANDSHAKE_FAILURE = -2;
+                    throw new SocketException(RTSSL_HANDSHAKE_FAILURE);
                 }
             }
             catch(Exception ex)


Mime
View raw message