Search Unity

Third Party 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:
    29
    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:
    3,070
    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:
    29
    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:
    3,070
    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.