diff -r 7c86bd1e9a43 -r a6180efe1d58 test/jdk/java/net/httpclient/SplitResponse.java --- a/test/jdk/java/net/httpclient/SplitResponse.java Tue Jun 26 13:19:01 2018 +0100 +++ b/test/jdk/java/net/httpclient/SplitResponse.java Wed Jun 27 21:24:56 2018 +0100 @@ -32,6 +32,7 @@ import java.util.concurrent.CompletableFuture; import javax.net.ssl.SSLContext; import javax.net.ServerSocketFactory; +import javax.net.ssl.SSLException; import javax.net.ssl.SSLServerSocketFactory; import java.net.http.HttpClient; import java.net.http.HttpClient.Version; @@ -268,7 +269,7 @@ String onechar = s.substring(i, i + 1); try { conn.send(onechar); - } catch(SocketException x) { + } catch(SocketException | SSLException x) { if (!useSSL || i != len - 1) throw x; if (x.getMessage().contains("closed by remote host")) { String osname = System.getProperty("os.name", "unknown");