Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

WebGL's WWW class times out quicker then Webplayer

Discussion in 'WebGL' started by PizzaGuy213, Jun 24, 2015.

  1. PizzaGuy213

    PizzaGuy213

    Joined:
    Nov 23, 2010
    Posts:
    305
    Hi,

    I've hit a problem porting our current project over to WebGL. When we try to POST data to a php file, we noticed that functionts that returned fairly large amounts of data get timed out in a WebGL build, where as any other build or playback in the editor has no problem whatsoever. The posted data is being delivered (we send images as an array, and then rebuild those images on the server), we can see the uploaded images on the server.

    1055266 characters is timing out, whether 2179 characters are not (we don't have any other example function to work with).

    Like mentioned before, both (exact same php files) work perfectly in any other platform build or in the editor.

    Is this a known bug? Or am I doing something wrong?

    I could find little to none about it other then http://answers.unity3d.com/questions/988009/unity-51-webgl-www-timeout.html

    Any help would be muched appreciated, I'd hate to have to roll back Unity versions and miss out on all the new features.
     
    Last edited: Jun 24, 2015
  2. davebuchhofer

    davebuchhofer

    Joined:
    Nov 9, 2007
    Posts:
    126
    5.1.1p1 release notes has this gem:

    (none) - WebGL: Fixed WWW Downloads failing if they take longer then 5 seconds.
     
  3. PizzaGuy213

    PizzaGuy213

    Joined:
    Nov 23, 2010
    Posts:
    305
    It got patched Today?? hahah thanks, that's awesome. Ill try it tonight!