Hi, I've got massive problems with async request with HttpWebRequest, so request got cancelled when a few requests has been done. Setting the KeepAlive-parameter to false doesn't make any changes. Also setting the HttpWebRequest's ServicePoint.ConnectionLimit and global ServicePointManager.DefaultConnectionLimit to a higher limit, e.g. 20, doesn't help. I'm also cancelling previous request via HttpWebRequest's Abort-method before creating a new one. After a few requests I've got the problem that request got cancelled immediately or loading endless(I'm checking timeout with registering the async wait handle at ThreadPool.RegisterWaitForSingleObject). I already worked on this issue for many hours and got no working solution but I think something is wrong with the connection limit and the release and reuse of old connections. Any suggestions?
Because of the problem with HttpWebRequest I tried to find another solution and tried to bind the Apache HttpClient Library(http://hc.apache.org/downloads.cgi) which is often used in Java Projects. I added the Apache HttpClient jar as InputJar and Apache HttpComponents HttpCore, Apache Commons Logging and Apache Commons Codec as reference jar as discribed in the Readme. Every time I try to create the project I'm getting this error and I have no idea what to do now. Because binding doesn't worked I'm accessing the HttpClient jar with JNI, but this is a little bit complicated right now cause not all method calls are working properly(e.g. releaseConnection), because I have never worked with JNI before. Hope anyone can help. Regards, Jonas -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/HttpWebRequest-connection-problem-Binding-Apache-HttpClient-tp5710953.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid