test/jdk/sun/security/ssl/SSLSocketImpl/SSLSocketClose.java
author xuelei
Tue, 18 Dec 2018 15:18:44 -0800
changeset 53067 8a61a04c456c
permissions -rw-r--r--
8209333: Socket reset issue for TLS 1.3 socket close Reviewed-by: jnimeh
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
53067
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
     1
/*
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
     2
 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
     4
 *
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
     7
 * published by the Free Software Foundation.
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
     8
 *
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    13
 * accompanied this code).
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    14
 *
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    18
 *
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    21
 * questions.
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    22
 */
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    23
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    24
//
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    25
// Please run in othervm mode.  SunJSSE does not support dynamic system
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    26
// properties, no way to re-use system properties in samevm/agentvm mode.
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    27
//
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    28
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    29
/*
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    30
 * @test
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    31
 * @bug 8209333
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    32
 * @summary Socket reset issue for TLS 1.3 socket close
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    33
 * @library /javax/net/ssl/templates
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    34
 * @run main/othervm SSLSocketClose
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    35
 */
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    36
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    37
import javax.net.ssl.*;
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    38
import java.io.*;
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    39
import java.net.InetAddress;
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    40
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    41
public class SSLSocketClose implements SSLContextTemplate {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    42
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    43
    public static void main(String[] args) throws Exception {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    44
        for (int i = 0; i<= 10; i++) {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    45
            System.err.println("===================================");
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    46
            System.err.println("loop " + i);
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    47
            System.err.println("===================================");
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    48
            new SSLSocketClose().test();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    49
        }
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    50
    }
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    51
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    52
    private void test() throws Exception {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    53
        SSLServerSocket listenSocket = null;
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    54
        SSLSocket serverSocket = null;
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    55
        ClientSocket clientSocket = null;
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    56
        try {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    57
            SSLServerSocketFactory serversocketfactory =
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    58
                    createServerSSLContext().getServerSocketFactory();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    59
            listenSocket =
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    60
                    (SSLServerSocket)serversocketfactory.createServerSocket(0);
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    61
            listenSocket.setNeedClientAuth(false);
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    62
            listenSocket.setEnableSessionCreation(true);
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    63
            listenSocket.setUseClientMode(false);
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    64
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    65
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    66
            System.err.println("Starting client");
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    67
            clientSocket = new ClientSocket(listenSocket.getLocalPort());
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    68
            clientSocket.start();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    69
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    70
            System.err.println("Accepting client requests");
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    71
            serverSocket = (SSLSocket) listenSocket.accept();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    72
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    73
            System.err.println("Reading data from client");
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    74
            BufferedReader serverReader = new BufferedReader(
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    75
                    new InputStreamReader(serverSocket.getInputStream()));
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    76
            String data = serverReader.readLine();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    77
            System.err.println("Received data from client: " + data);
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    78
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    79
            System.err.println("Sending data to client ...");
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    80
            String serverData = "Hi, I am server";
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    81
            BufferedWriter os = new BufferedWriter(
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    82
                    new OutputStreamWriter(serverSocket.getOutputStream()));
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    83
            os.write(serverData, 0, serverData.length());
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    84
            os.newLine();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    85
            os.flush();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    86
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    87
            System.err.println("Reading more data from client");
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    88
            data = serverReader.readLine();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    89
            System.err.println("Received data from client: " + data);
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    90
        } finally {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    91
            if (listenSocket != null) {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    92
                listenSocket.close();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    93
            }
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    94
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    95
            if (serverSocket != null) {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    96
                serverSocket.close();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    97
            }
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    98
        }
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
    99
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   100
        if (clientSocket != null && clientSocket.clientException != null) {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   101
            throw clientSocket.clientException;
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   102
        }
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   103
    }
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   104
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   105
    private class ClientSocket extends Thread{
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   106
        int serverPort = 0;
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   107
        Exception clientException;
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   108
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   109
        public ClientSocket(int serverPort) {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   110
            this.serverPort = serverPort;
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   111
        }
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   112
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   113
        @Override
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   114
        public void run() {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   115
            SSLSocket clientSocket = null;
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   116
            String clientData = "Hi, I am client";
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   117
            try {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   118
                System.err.println(
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   119
                        "Connecting to server at port " + serverPort);
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   120
                SSLSocketFactory sslSocketFactory =
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   121
                        createClientSSLContext().getSocketFactory();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   122
                clientSocket = (SSLSocket)sslSocketFactory.createSocket(
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   123
                        InetAddress.getLocalHost(), serverPort);
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   124
                clientSocket.setSoLinger(true, 3);
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   125
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   126
                System.err.println("Sending data to server ...");
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   127
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   128
                BufferedWriter os = new BufferedWriter(
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   129
                        new OutputStreamWriter(clientSocket.getOutputStream()));
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   130
                os.write(clientData, 0, clientData.length());
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   131
                os.newLine();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   132
                os.flush();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   133
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   134
                System.err.println("Reading data from server");
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   135
                BufferedReader is = new BufferedReader(
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   136
                        new InputStreamReader(clientSocket.getInputStream()));
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   137
                String data = is.readLine();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   138
                System.err.println("Received Data from server: " + data);
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   139
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   140
                System.err.println("Sending more data to server ...");
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   141
                os.write(clientData, 0, clientData.length());
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   142
                os.newLine();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   143
                os.flush();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   144
            } catch (Exception e) {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   145
                clientException = e;
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   146
            } finally {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   147
                if (clientSocket != null) {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   148
                    try{
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   149
                        clientSocket.close();
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   150
                        System.err.println("client socket closed");
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   151
                    } catch (IOException ioe) {
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   152
                        clientException = ioe;
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   153
                    }
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   154
                }
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   155
            }
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   156
        }
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   157
    }
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   158
}
8a61a04c456c 8209333: Socket reset issue for TLS 1.3 socket close
xuelei
parents:
diff changeset
   159