mendopablo 0 Report post Posted July 22, 2013 CIAPI.CS freezes the Main Thread on:https://github.com/cityindex/CIAPI.CS/blob/master/src/JsonClient/ThrottedRequestQueue.cs.orig#L135 Looking at other threads I found one waiting at:https://github.com/cityindex/CIAPI.CS/blob/master/src/JsonClient/RequestController.cs#L196 This happens randomly but more frecuently when we make two or more requests in a short period of time. I think that if any of the webrequests fails then the lock is never free. Share this post Link to post
Guest sky.sanders Report post Posted July 25, 2013 I think that we have isolated this issue and it revolves around the fact that phone7/silverlight have a hard coded maximum of 6 http connections. It manages multiple connection requests by queuing them. The streaming implementation requires more than one connection for each stream. Opening multiple streams quickly uses up this quota of connections and may leave your rpc request hanging in limbo within microsoft’s code. For phone7 I have implemented a hard cap of 2 streams, this leaves 2 connections available to service rpc calls. I apologize but for phone/silverlight clients will require more attention to connection management. I is not possible to open several streams. Share this post Link to post
Guest mrdavidlaing Report post Posted August 5, 2013 CIAPI.CS freezes the Main Thread on:https://github.com/cityindex/CIAPI.CS/blob/master/src/JsonClient/ThrottedRequestQueue.cs.orig#L135 Looking at other threads I found one waiting at:https://github.com/cityindex/CIAPI.CS/blob/master/src/JsonClient/RequestController.cs#L196 This happens randomly but more frecuently when we make two or more requests in a short period of time. I think that if any of the webrequests fails then the lock is never free. We’re investigating; but pinpointing the cause of the error is going to be tricky given that it happens “randomly”. Could you create a sample app or unit test that shows the error occuring please? Share this post Link to post
Guest mrdavidlaing Report post Posted August 5, 2013 CIAPI.CS freezes the Main Thread on:https://github.com/cityindex/CIAPI.CS/blob/master/src/JsonClient/ThrottedRequestQueue.cs.orig#L135 Looking at other threads I found one waiting at:https://github.com/cityindex/CIAPI.CS/blob/master/src/JsonClient/RequestController.cs#L196 This happens randomly but more frecuently when we make two or more requests in a short period of time. I think that if any of the webrequests fails then the lock is never free. https://github.com/cityindex/CIAPI.CS/issues/74 Share this post Link to post