RFR[9] JDK-8171043: ServerIdentityTest.java fails on Windows

Felix Yang felix.yang at oracle.com
Mon Dec 12 05:41:45 UTC 2016


+1, it is a good habit to read off the data before closing the 
connection. Otherwise this may lead to "connection reset " exception 
sometimes.

-Felix
On 2016/12/12 13:07, Xuelei Fan wrote:
> Hi John,
>
> It's a good catch of the problem.  Looks like the server side should 
> read the HTTP request at first, and then write the HTTP response. 
> That's the server call:
>      InputStream sslIS = socket.getInputStream();
>      sslIS.read();
> and then write the "HTTP/1.1, ...".
>
> Thanks,
> Xuelei
>
> On 12/11/2016 4:11 AM, John Jiang wrote:
>> Hi,
>> Please review this patch for test
>> sun/net/www/protocol/https/HttpsClient/ServerIdentityTest.java
>> Before the client get the response, the server may close.
>>
>> Webrev: http://cr.openjdk.java.net/~jjiang/8171043/webrev.00/
>> Issue: https://bugs.openjdk.java.net/browse/JDK-8171043
>>
>> Best regards,
>> John Jiang
>>




More information about the security-dev mailing list