From 4fd8396ba3eb7c38e8606e4a6e1e0a4a4344ae6d Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 7 Nov 2014 11:31:19 -0700 Subject: [PATCH] fix WSA error 10093 when openning a ServerSocketChannel We need to call Socket.init before trying to use the Windows Socket library. We were already doing this in SocketChannel.open, but not in ServerSocketChannel.open. --- classpath/java/nio/channels/ServerSocketChannel.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classpath/java/nio/channels/ServerSocketChannel.java b/classpath/java/nio/channels/ServerSocketChannel.java index 1bc0891115..6c90af63f6 100644 --- a/classpath/java/nio/channels/ServerSocketChannel.java +++ b/classpath/java/nio/channels/ServerSocketChannel.java @@ -25,6 +25,8 @@ public class ServerSocketChannel extends SelectableChannel { } public static ServerSocketChannel open() throws IOException { + Socket.init(); + return new ServerSocketChannel(); }