jdk/test/java/nio/channels/Selector/SelectorLimit.java
changeset 44366 18a7c084f50a
parent 23010 6dadb192ad81
equal deleted inserted replaced
44365:15a9dd7386b1 44366:18a7c084f50a
    64 
    64 
    65     static final int N_KEYS = 500;
    65     static final int N_KEYS = 500;
    66     static final int MIN_KEYS = 100;
    66     static final int MIN_KEYS = 100;
    67 
    67 
    68     public static void main(String[] args) throws Exception {
    68     public static void main(String[] args) throws Exception {
    69         // win9X can't handle many connections at once
       
    70         String osName = System.getProperty("os.name");
       
    71         if (osName.toLowerCase().startsWith("win")) {
       
    72             if (!(osName.equals("Windows NT")
       
    73                   || osName.equals("Windows 2000")
       
    74                   || osName.equals("Windows XP")))
       
    75                 return;
       
    76         }
       
    77 
       
    78         ServerSocketChannel ssc = ServerSocketChannel.open();
    69         ServerSocketChannel ssc = ServerSocketChannel.open();
    79         TestUtil.bind(ssc);
    70         TestUtil.bind(ssc);
    80         Listener lth = new Listener(ssc);
    71         Listener lth = new Listener(ssc);
    81         lth.start();
    72         lth.start();
    82 
    73