mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 06:25:59 -07:00
Merge pull request #222 from seragh/server-mtu
Fix MTU negotiation on server side
This commit is contained in:
commit
eb89a34d66
1 changed files with 2 additions and 1 deletions
|
@ -384,6 +384,7 @@ enet_protocol_handle_connect (ENetHost * host, ENetProtocolHeader * header, ENet
|
||||||
if (mtu > ENET_PROTOCOL_MAXIMUM_MTU)
|
if (mtu > ENET_PROTOCOL_MAXIMUM_MTU)
|
||||||
mtu = ENET_PROTOCOL_MAXIMUM_MTU;
|
mtu = ENET_PROTOCOL_MAXIMUM_MTU;
|
||||||
|
|
||||||
|
if (mtu < peer -> mtu)
|
||||||
peer -> mtu = mtu;
|
peer -> mtu = mtu;
|
||||||
|
|
||||||
if (host -> outgoingBandwidth == 0 &&
|
if (host -> outgoingBandwidth == 0 &&
|
||||||
|
|
Loading…
Reference in a new issue