-
1. Re: Any way to specify connect timeout separate from socket
ron_sigal Jun 25, 2007 2:34 PM (in response to javajedi)Which Remoting transport are you using?
-
2. Re: Any way to specify connect timeout separate from socket
javajedi Jun 25, 2007 2:38 PM (in response to javajedi)Sorry, I mentioned it in the subject line, but the forums truncated it. :) I'm using the socket transport (1.4.4).
-
3. Re: Any way to specify connect timeout separate from socket
ron_sigal Jun 25, 2007 3:15 PM (in response to javajedi)Hey Tim,
Ok, I'm assuming that you're talking about the time spent in java.net.Socket.connect(). Note that the socket transport uses connection pools, so a given invocation may or may not need to create and connect a new socket.
Now, Remoting 2.2.0 has a "per invocation" timeout facility which limits the time taken by a single invocation. See Section 5.8.2 "Per invocation timeouts" in the Remoting Guide (http://labs.jboss.com/jbossremoting/docs/guide/ch05.html#d0e5415 ) for more information. If the invocation needs to create a socket, the remaining time until timeout will be passed to the java.net.Socket methodpublic void connect(SocketAddress endpoint, int timeout) throws IOException
After the socket is created, any remaining time until timeout will be available for the actual invocation.
I'm not sure if that helps. If not, can you say more about what you're trying to do?