aboutsummaryrefslogtreecommitdiffstats
path: root/community/openjdk10/Alpine_Bug_10126.java
diff options
context:
space:
mode:
authorSimon Frankenberger <simon@fraho.eu>2019-06-02 21:54:02 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-05 17:27:50 +0000
commit309e323d10bf9a58a9da59eb60c09079a3c09a0a (patch)
treed0dd415cd1db358325c412013d94e23b1cada653 /community/openjdk10/Alpine_Bug_10126.java
parent6212920763e5e59a83b6d2654a92e258ab791ea0 (diff)
downloadaports-309e323d10bf9a58a9da59eb60c09079a3c09a0a.tar.bz2
aports-309e323d10bf9a58a9da59eb60c09079a3c09a0a.tar.xz
community/openjdk9-11: Move from testing
OpenJDK 9 and 10 may be removed once 11 is built.
Diffstat (limited to 'community/openjdk10/Alpine_Bug_10126.java')
-rw-r--r--community/openjdk10/Alpine_Bug_10126.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/openjdk10/Alpine_Bug_10126.java b/community/openjdk10/Alpine_Bug_10126.java
new file mode 100644
index 0000000000..57746f3b95
--- /dev/null
+++ b/community/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");
+ }
+}
+