- Home /
[iOS] WWW class sometimes doesn't return a response
We've developed a relatively asynchronous game where peers connect to the game server via a simple REST WebService to send out commands and receive their results.
This usually works very well, however in some bizarre cases (probably on poor internet connections) - the WWW request would reach the server (we could see it come in) but the response would never come back.
Now I'm pretty sure that WWW works with TCP, and as far as my knowledge of TCP goes I think it should "know" that some packets got lost on the way back and request them again - yet the response never arrives to the client.
If we'll send another request it will work perfectly well again.
Thanks
Having the same issue.
"however in some bizarre cases (probably on poor internet connections) - the WWW request would reach the server (we could see it come in) but the response would never come back." In some cases it doesn't even reach the server but WWW doesn't show any error.
Any solutions?
There has been cases where iOS does not go too well with yield return www;
You could try:
WWW www = new WWW(url);
while(www.IsDone == false){
yield return null;
}
Your answer
Follow this Question
Related Questions
Is HttpWebRequest supported for desktop and editor? 2 Answers
WWW http request loads way to long on IOS 0 Answers
WWW class is empty on iOS 1 Answer
WWW.uploadProgress doesn't work on iOS 0 Answers
Unity WWW Warning Message in Xcode 1 Answer