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 46167200B38 for ; Fri, 24 Jun 2016 08:14:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4489A160A68; Fri, 24 Jun 2016 06:14:18 +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 8B806160A59 for ; Fri, 24 Jun 2016 08:14:17 +0200 (CEST) Received: (qmail 69485 invoked by uid 500); 24 Jun 2016 06:14:16 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 69474 invoked by uid 99); 24 Jun 2016 06:14:16 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2016 06:14:16 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 205A82C14F8 for ; Fri, 24 Jun 2016 06:14:16 +0000 (UTC) Date: Fri, 24 Jun 2016 06:14:16 +0000 (UTC) From: =?utf-8?Q?Thorsten_Sch=C3=B6ning_=28JIRA=29?= To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (HTTPCORE-425) TestSSLContextBuilder.testSSLHanskshakeProtocolMismatch2 fails on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 24 Jun 2016 06:14:18 -0000 [ https://issues.apache.org/jira/browse/HTTPCORE-425?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thorsten Sch=C3=B6ning closed HTTPCORE-425. -------------------------------------- Verified, tests pass. Thanks. > TestSSLContextBuilder.testSSLHanskshakeProtocolMismatch2 fails on Windows > ------------------------------------------------------------------------- > > Key: HTTPCORE-425 > URL: https://issues.apache.org/jira/browse/HTTPCORE-425 > Project: HttpComponents HttpCore > Issue Type: Bug > Components: HttpCore > Affects Versions: 4.4.5 > Environment: Windows 8.1 x64 Prof > Reporter: Thorsten Sch=C3=B6ning > Fix For: 4.4.6 > > Attachments: TestSSLContextBuilder.java localhost.patch, TestSSLC= ontextBuilder.java.patch > > > {CODE} > java.lang.Exception: Unexpected exception, expected but was > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.socketRead(SocketInputStream.java:1= 16) > at java.net.SocketInputStream.read(SocketInputStream.java:170) > at java.net.SocketInputStream.read(SocketInputStream.java:141) > at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) > at sun.security.ssl.InputRecord.read(InputRecord.java:503) > at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:9= 73) > at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSock= etImpl.java:1375) > at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.ja= va:1403) > at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.ja= va:1387) > at org.apache.http.ssl.TestSSLContextBuilder.testSSLHanskshakePro= tocolMismatch2(TestSSLContextBuilder.java:603) > {CODE} > As mentioned on the mailing list, there's a fix for this available on tru= nk. Would you please consider backporting this to other branches? Thanks! > Don't know if this is related or not, but the following line would better= use "localhost" in my opinion: > > serverSocket.bind(new InetSocketAddress(0)); > Simply for security reasons, no other access is made later, only a conne= ction from localhost to localhost. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org