Question by
HelloGalaxy · Nov 18, 2015 at 02:17 PM ·
downloadconnectiontimeout
WWW class cannot give the timeout error message
Hi, I make a test about www lost connection during downloading.
But after I cut down the wifi, I can see its progress has stopped in a value.
During the stopped 5 mins, I still see it shows the same value, there are not timeout or another error message in log.
So, I reactivate the wifi, the conneciton is ok, but It still keep that stopped value, no error output there. Does the www class implement the timeout error here or not?
Here is my test code
public string url;
WWW www;
void OnGUI()
{
GUILayout.BeginVertical();
if (GUILayout.Button("Start"))
{
StartCoroutine(StartWWW());
}
GUILayout.EndVertical();
}
IEnumerator StartWWW()
{
www = new WWW(url);
Debug.Log("Start");
yield return www;
if (!string.IsNullOrEmpty(www.error))
{
Debug.Log(www.error);
}
else
{
Debug.Log("Success");
}
}
void Update()
{
if (www != null && !www.isDone)
Debug.LogWarning("Progress: " + www.progress);
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612045526im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
ServerDisconnected due to error: Timeout 1 Answer
Asset Store Won't Download 0 Answers
Fresh Collab download does not finish! 0 Answers
problem with intallation of hunity hub 1 Answer
unity can't connect 0 Answers