/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6952519
* @summary kdc_timeout is not being honoured when using TCP
*/
public class TcpTimeout {
throws Exception {
// Start two listener that does not communicate, simulate timeout
new Thread() {
public void run() {
try {
} catch (Exception e) {
}}
}.start();
new Thread() {
public void run() {
try {
} catch (Exception e) {
}}
}.start();
"udp_preference_limit = 1\n" +
"max_retries = 2\n" +
"kdc_timeout = 5000\n");
"}\n");
// The correct behavior should be:
// 5 sec on p1, 5 sec on p1, fail
// 5 sec on p2, 5 sec on p2, fail
// p3 ok, p3 ok again for preauth.
// The total time should be 20sec + 2x. x is processing time for AS-REQ.
int count = 6;
count--;
}
}
if (count != 0) {
}
}
}
return k;
}
private static void addFakeKDCs()
throws Exception {
while (true) {
if (s == null) {
break;
}
}
}
}
}