[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-API] System.Net.WebException occurred when i use Xen C# SDK v1.1
Hi When I use Xen C# SDK v1.1 to get Xen Host's Cpu Utilization every minute, I have got an exception below aperiodically. :( System.Net.WebException The underlying connection was closed: A connection that was expected To be kept alive was closed by the server. Just as we know, v1.1 sdk doesn't implement xenapi's logout or dispose method now,just login method can be used. Maybe this is why "_proxy.KeepAlive = true;" is there in the XenAPI.Session Class's constructor. But there has an issue about this exception in www.xml-rpc.net. http://www.xml-rpc.net/faq/xmlrpcnetfaq.html#2.27 Detail is 2.27 How can I stop a WebException being thrown? The Underlying Connection Was Closed When an instance of WebException is thrown with this message "The underlying connection was closed: A connection that was expected to be kept alive was closed by the server", try setting the KeepAlive property on the proxy to false. If I change xen session's proxy.keepalive to false, is there other problem would occurre ? Dose someone can tell me how to do ? Thanks :) Kino (wanghl@xxxxxxxxxxxxxxxxxxxx) _______________________________________________ xen-api mailing list xen-api@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |