3261N/A * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 1027N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1027N/A * This code is free software; you can redistribute it and/or modify it 1027N/A * under the terms of the GNU General Public License version 2 only, as 1027N/A * published by the Free Software Foundation. 1027N/A * This code is distributed in the hope that it will be useful, but WITHOUT 1027N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1027N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1027N/A * version 2 for more details (a copy is included in the LICENSE file that 1027N/A * You should have received a copy of the GNU General Public License version 1027N/A * 2 along with this work; if not, write to the Free Software Foundation, 1027N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 1027N/A * @summary Pre-close file descriptor may inadvertently get registered with 1027N/A * A task that continuously connects to a given address and immediately 1027N/A // back-off as probably resource related 1027N/A * A task that closes a channel. 1027N/A // create Executor that handles tasks that closes channels 1027N/A // "asynchronously" - this creates the conditions to provoke the bug. 1027N/A // submit task that connects to listener 1027N/A // loop accepting connections until done (or an IOException is thrown)