2008-06-04から1日間の記事一覧
Windows XP環境で、次のコードを実行すると、 for ( int i = 0 ; i < 20000; i++ ) { System.out.println( i ); Socket s = null; try { s = new Socket("hogehoge.com", 80); } finally { if (s != null) { s.close(); } } } 4000回目くらいで以下のエラー…
Windows XP環境で、次のコードを実行すると、 for ( int i = 0 ; i < 20000; i++ ) { System.out.println( i ); Socket s = null; try { s = new Socket("hogehoge.com", 80); } finally { if (s != null) { s.close(); } } } 4000回目くらいで以下のエラー…