All the Http request would be time out when Debug!Who knows the Error?
When you “debug”, does that mean you set up breakpoints? Because in this case the connection will of course time out. You can halt your game / app, but not the rest of the world. The server you’re connected to doesn’t wait forever for your reply.
yeah,I have encounted this issue too. The http request works fine in the standalone version, but always get an timeout exception while debugging from the monodevelop. That’s really wreid. Wish to get help, Thanks!
Hello there! I found the problem, I suppose. For me it was still actual for this moment.
In my case, the problem was in using ThreadPool. Somehow, it was not enough threads in this pool, and debugging operation (I don’t know how) decrease limit of pools. But HttpWebRequest’ (as far as I know) using thread from this pool, and running out of time while waiting for next free thread to perform request.
So, I’ve managed to use creating and running simple Thread instead of using ThreadPool.QueueUserWorkItem. It helps.
But, my next question (for other question thread), what is limit of threads that I can create manually?