Change UDP socket buffer size (bottleneck?)

Hello.

As far as I understand, the network communication for self-hosted Photon Servers is done via socket buffers, whose size may be a communication bottleneck? Is there a way to read/write UDP socket buffer sizes of the server?

I know there are server config commands, such as:

MaxQueuedDataPerPeer="512000"
PerPeerMaxReliableDataInTransit="51200"
PerPeerTransmitRateLimitKBSec="256"


But do they modify the socket buffer sizes? Please explain.

Thanks.

Comments

  • chvetsov
    chvetsov mod
    edited February 2021
    hi, @huyaks69

    Udp buffers are allocated once during peer creation. The sizes of such buffers are set in config and you can not read them

    Those sizes were not the problem for developers for last 10 years with all kind of games. So, if you have issue with those buffer than most probably you do something wrong. That will actually mean that your client can not receive so much data. and you need to optimize your traffic

    in very rare cases when developers have their own cloud we may increase those sizes

    best,
    ilya

    PS: stupid nick
  • But what parameter exactly is responsible for the buffer sizes? Is changing MaxQueuedDataPerPeer enough? There is also the RecvBufferSize in UDPListeners: https://doc.photonengine.com/en-us/server/current/operations/server-config-settings

  • yes, MaxQueuedDataPerPeer is enough
    best,
    ilya