tags:

views:

178

answers:

1

I am using Hessian C# client in my project to talk to a Hessian Java server.

using hessiancsharp.client;

String url = "http://127.0.0.1:2000/test";

CHessianProxyFactory factory = new CHessianProxyFactory();

I didn't find a timeout option for the Hessian C# client (unlike the setReadTimeout in the Hessian Java client).

Can anybody help me how can I set time out in Hessian C# client?

A: 

I just had a short look into the sources. It seems that specifying timeouts is currently not supported. For a patch, you probably would have to modify the method calls in the class CHessianMethodCaller. This class uses the standard .NET WebRequest class that exposes a Timeout property.

0xA3
Hi divo, thanks for the response. I tried to set the timeout in the CHessianMethodCaller but as far I see it didn't seem to be timing out based on my given value.
hrl