To set a timeout you can (and probably should) use the Socket's setSoTimeout() method.
----- Original Message ----- From: "Martin Burlinski" <[EMAIL PROTECTED]> To: "Venkk Suryanarayanan" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, September 01, 2004 6:31 PM Subject: RE: XmlRpcClient timeout question > I don't have any control over server-side code. > > On Wed, 1 Sep 2004, Venkk Suryanarayanan wrote: > > > Look to see whether the server-side code has any part of code that goes > > to indefinite loop are something... > > > > -----Original Message----- > > From: Martin Burlinski [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 01, 2004 11:21 AM > > To: [EMAIL PROTECTED] > > Subject: XmlRpcClient timeout question > > > > Hi, > > > > I am using the org.apache.xmlrpc.XmlRpcClient. The server I connect to > > hangs > > from time to time to time. It accepts the connections but does not > > replay. > > I would like to wait for a given time and then throw an exception. > > How can I set a timeout for this ? > > > > Thanks > > > > Martin > > > > > > > > > >
