3261N/A * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 3105N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3105N/A * This code is free software; you can redistribute it and/or modify it 3105N/A * under the terms of the GNU General Public License version 2 only, as 3105N/A * published by the Free Software Foundation. 3105N/A * This code is distributed in the hope that it will be useful, but WITHOUT 3105N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3105N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3105N/A * version 2 for more details (a copy is included in the LICENSE file that 3105N/A * You should have received a copy of the GNU General Public License version 3105N/A * 2 along with this work; if not, write to the Free Software Foundation, 3105N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3105N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3105N/A * or visit www.oracle.com if you need additional information or have any 3105N/A // open TCP connection without sending anything. Check server closes it. 3105N/A // server should close connection after 2 seconds. We wait up to 10 3105N/A // send request and don't read response. Check server closes connection 3105N/A // we won't read response and check if it times out 3105N/A // on server. If it timesout at client then there is a problem 3105N/A // same as test2, but repeated with multiple connections 3105N/A // Worker: a thread opens a connection to the server in one of three modes. 3105N/A // NORMAL - sends a request, waits for response, and checks valid response 3105N/A // REQUEST - sends a partial request, and blocks, to see if 3105N/A // server closes the connection. 3105N/A // RESPONSE - sends a request, partially reads response and blocks, 3105N/A // to see if server closes the connection.