Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 759A7200C40 for ; Thu, 9 Mar 2017 00:12:07 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 745E9160B89; Wed, 8 Mar 2017 23:12:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B7360160B8C for ; Thu, 9 Mar 2017 00:12:05 +0100 (CET) Received: (qmail 7708 invoked by uid 500); 8 Mar 2017 23:12:04 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 5796 invoked by uid 99); 8 Mar 2017 23:12:03 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Mar 2017 23:12:03 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C5C45F4B59; Wed, 8 Mar 2017 23:12:03 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tabish@apache.org To: commits@activemq.apache.org Date: Wed, 08 Mar 2017 23:12:25 -0000 Message-Id: In-Reply-To: <180f795beb1c4bf99d79e248d7fcfe01@git.apache.org> References: <180f795beb1c4bf99d79e248d7fcfe01@git.apache.org> X-Mailer: ASF-Git Admin Mailer 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) archived-at: Wed, 08 Mar 2017 23:12:07 -0000 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 Authored: Wed Jul 8 19:44:54 2015 +0000 Committer: Jim Gomes 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)