magicmonty / xmlrpcnet

Mirror from code.google.com/p/xmlrpcnet with additional NuGet Support
2 stars 4 forks source link

Timeout not working and Abort not available #80

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call XMLRPC endpoint using Async pattern e.g. BeginAction(...)
2. Restart network proxy server
3. Call never completes, even if Timeout is set

Timeout on WebRequest has no effect when used with Async methods - you must 
implement your own timeout. I have tried to do this but there is no way to get 
the WebRequest and abort the call. 

What is the expected output? What do you see instead?
I expect a) the timeout to work, or b) I expect to be able to abort the call.

What version of the product are you using? On what operating system?
2.0 on Windows Server 2003

Please provide any additional information below.

Original issue reported on code.google.com by jcaradoc...@gmail.com on 7 Jan 2011 at 9:18

GoogleCodeExporter commented 9 years ago
I have some code to work around this issue. Maybe in next release.

Original comment by ChasC...@gmail.com on 2 Feb 2011 at 8:31

GoogleCodeExporter commented 9 years ago
For the timeout, I suggest to correct this line :
Version : 2.5.0
File : XmlRpcAsyncResult.cs
Class : XmlRpcAsyncResult
Method : internal WebResponse WaitForResponse()
Line : 250 --- AsyncWaitHandle.WaitOne();
Line : 250 +++ AsyncWaitHandle.WaitOne(ClientProtocol.Timeout);

Original comment by n...@pacaeo.com on 13 Feb 2012 at 1:48