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. Unity 2022.2 is now available as the latest Tech release.
    Dismiss Notice
  3. We are making some changes to the DOTS forums.
    Dismiss Notice
  4. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question Unity post HTTP method of a 788KB string is causing a server timeout disconnect in Photon

Discussion in 'Multiplayer' started by xxmohammadmbbmxx, Nov 24, 2022.

  1. xxmohammadmbbmxx

    xxmohammadmbbmxx

    Joined:
    Apr 24, 2021
    Posts:
    26
    Unity post HTTP method of a 788KB string is causing a server timeout disconnect in Photon, causing all the players to disconnect, how can this be avoided? thanks.
     
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    2,945
    Make sure it doesn't block the main thread and it should work.
    Are you using PUN or something else?
    There are cases where tcp/http traffic on a router may affect udp but this doesn't sound like it should do that.
     
  3. xxmohammadmbbmxx

    xxmohammadmbbmxx

    Joined:
    Apr 24, 2021
    Posts:
    26
    I solved that by changing the Photon protocol to Tcp, my theory is that the http was taking most of the upload speed making Photon disconnect, Tcp seems to have handle less wifi speed.
     
  4. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    2,945
    This is odd, really. I don't think that a relatively small download should affect the connection this badly.
    How long does the download take? Can you send a pepro project, which is easy to test? I'd look into it.
    Mail (a download link) to: developer@photonengine.com, if you can spare the time.

    Either way: Great you found a workaround to unblock you.