Sometimes HttpConnections give TCP read timed out in the Simulator

Some web requests, HttpConnection will quickly stall and eventually throw a

TCP read timed out

exception. This appears to only be a problem on simulators. The network path and configuration options for the request do not seem to affect the problem at all.

Workaround

I have been able to work around the problem by sleeping for 250 milliseconds after every 32KB of data downloaded.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© 2011 Metova, Inc.