activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject [24/50] [abbrv] activemq-nms-openwire git commit: Merged revision(s) 1689948 from activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.7.x: Set the socket exception error code to RTSSL_HANDSHAKE_FAILURE. Fixes [AMQNET-502]. (See https://issues.apache.
Date Wed, 08 Mar 2017 23:12:26 GMT
Merged revision(s) 1689948 from activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.7.x:
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/3c31b7e2
Tree: http://git-wip-us.apache.org/repos/asf/activemq-nms-openwire/tree/3c31b7e2
Diff: http://git-wip-us.apache.org/repos/asf/activemq-nms-openwire/diff/3c31b7e2

Branch: refs/heads/master
Commit: 3c31b7e202808dc982fc68fdd69ed228d99e7dd0
Parents: aba1ae0
Author: Jim Gomes <jgomes@apache.org>
Authored: Wed Jul 8 19:45:40 2015 +0000
Committer: Jim Gomes <jgomes@apache.org>
Committed: Wed Jul 8 19:45:40 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/3c31b7e2/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