X-Git-Url: http://git.megacz.com/?p=org.ibex.jinetd.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjinetd%2FRoot.java;fp=src%2Forg%2Fibex%2Fjinetd%2FRoot.java;h=49bcf39624f5abb901015ca4747971a0f921a66f;hp=d89b04c3ddbf013eac2a89f097d85df07b4fdfd7;hb=df13dadbee1a679518ccebbf417a11ec17c77aec;hpb=5d36398ed04551d352ed4b185c036c5cd3433282 diff --git a/src/org/ibex/jinetd/Root.java b/src/org/ibex/jinetd/Root.java index d89b04c..49bcf39 100644 --- a/src/org/ibex/jinetd/Root.java +++ b/src/org/ibex/jinetd/Root.java @@ -11,9 +11,12 @@ import java.net.*; public class Root extends Loader { public static String root = System.getProperty("jinetd.root", null); + private final Host host; private final Watched port; + private static final ThreadPool tp = new ThreadPool(10, 100); + public Root(String path) { super(path); host = new Host(path + File.separatorChar + "host", null); @@ -56,7 +59,8 @@ public class Root extends Loader { try { return Port.newPort(this.path + File.separatorChar + part, ipaddr == null ? null : InetAddress.getByName(ipaddr), - portnum.equals("*") ? 0 : Integer.parseInt(portnum)); + portnum.equals("*") ? 0 : Integer.parseInt(portnum), + tp); } catch (UnknownHostException e) { Log.warn(this, "can't resolve host for port directory: " + part); } catch (NumberFormatException e) { Log.warn(this, "invalid port directory: " + part); } catch (Exception e) { Log.warn(this, "error instantiating Port: " + part);