tons of changes
[org.ibex.jinetd.git] / src / org / ibex / jinetd / Root.java
index d89b04c..49bcf39 100644 (file)
@@ -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);