× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Mike,

> -----Original Message-----
> From: Mike Silvers [mailto:msilvers@HBS-INC.COM]
> Is there any way to shorten the time for a connect timeout?

Not easy (or even not possible without writing some JNI code) in JDK 1.3.x

But, in the Java client can you use JDK 1.4 ? Then you can use Socket.connect() 
method that has a timeout parameter.

>From the docs for JDK 1.4;

public void connect(SocketAddress endpoint,
                    int timeout)
             throws IOExceptionConnects this socket to the server with a 
specified timeout value. A timeout of zero is interpreted as an infinite 
timeout. The connection will then block until established or an error occurs.

--phil


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.