[SoapRMI] timeouts not working?

Aleksander Slominski aslom_at_cs.indiana.edu
Fri, 31 Oct 2003 12:17:16 -0500


Mark Swanson wrote:

>(I posted this as an unsubscribed person, so I subscribed and reposted...)
>
>Hello,
>
>I'm using 1.2.20_DEV9 and the socket timeouts appear to be hard-coded to zero.
>
>HttpSocketSoapInvocationHandler.java: 
>private int timeout = 0;
>  
>
this looks like bug!

>I'm setting the read timeout like this:
>soaprmi.soaprpc.HttpSocketSoapInvoker.setDefaultTimeout(5000);
>
>but the Invoker timeout isn't used with the InvocationHandler.
>  
>

>How should I use read timeouts with XSOAP?
>
>  
>
did you try to do this:

soaprmi.soaprpc.HttpSocketSoapInvoker hsi = 
(soaprmi.soaprpc.HttpSocketSoapInvoker)
soaprmi.soaprpc.HttpSocketSoapInvoker.getDefault();
hsi.setDefaultTimeout(1 * 60 * 1000); // 1 minute
soaprmi.soaprpc.SoapServices.getDefault().setInvoker(hsi);

thanks,

alek

-- 
If everything seems under control, you're just not going fast enough. —Mario Andretti