From 60fc00ff4cf84bb74c7ef84672c294f61aef1ab0 Mon Sep 17 00:00:00 2001 From: Simon Frankenberger Date: Mon, 28 Jan 2019 22:01:51 +0100 Subject: testing/openjdk10: New aport --- testing/openjdk10/Alpine_Bug_10126.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 testing/openjdk10/Alpine_Bug_10126.java (limited to 'testing/openjdk10/Alpine_Bug_10126.java') diff --git a/testing/openjdk10/Alpine_Bug_10126.java b/testing/openjdk10/Alpine_Bug_10126.java new file mode 100644 index 0000000000..57746f3b95 --- /dev/null +++ b/testing/openjdk10/Alpine_Bug_10126.java @@ -0,0 +1,13 @@ +public class Alpine_Bug_10126 { + public static void main(String[] args) throws Exception { + try (java.net.Socket sock = javax.net.ssl.SSLSocketFactory.getDefault().createSocket("bugs.alpinelinux.org", 443); + java.io.InputStream in = sock.getInputStream(); + java.io.OutputStream out = sock.getOutputStream()) { + out.write("GET / HTTP/1.0\n\nHost: bugs.alpinelinux.org\n\nConnection: close\n\n\n\n".getBytes()); + out.flush(); + while (in.read(new byte[1024]) != -1) ; + } + System.out.println("Secured connection performed successfully"); + } +} + -- cgit v1.2.3