From 3991e58da736e29cd687b150644fe6c1317b6750 Mon Sep 17 00:00:00 2001 From: Simon Frankenberger Date: Wed, 18 Mar 2020 20:57:41 +0200 Subject: testing/openjdk13: New aport --- testing/openjdk13/Alpine_Bug_10126.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 testing/openjdk13/Alpine_Bug_10126.java (limited to 'testing/openjdk13/Alpine_Bug_10126.java') diff --git a/testing/openjdk13/Alpine_Bug_10126.java b/testing/openjdk13/Alpine_Bug_10126.java new file mode 100644 index 0000000000..76574a1509 --- /dev/null +++ b/testing/openjdk13/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: gitlab.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