Merge pull request #222 from seragh/server-mtu
Fix MTU negotiation on server side
This commit is contained in:
+2
-1
@@ -384,7 +384,8 @@ enet_protocol_handle_connect (ENetHost * host, ENetProtocolHeader * header, ENet
|
||||
if (mtu > ENET_PROTOCOL_MAXIMUM_MTU)
|
||||
mtu = ENET_PROTOCOL_MAXIMUM_MTU;
|
||||
|
||||
peer -> mtu = mtu;
|
||||
if (mtu < peer -> mtu)
|
||||
peer -> mtu = mtu;
|
||||
|
||||
if (host -> outgoingBandwidth == 0 &&
|
||||
peer -> incomingBandwidth == 0)
|
||||
|
||||
Reference in New Issue
Block a user