mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-05 19:37:17 +00:00
Network: Added config to pocketmine.yml to allow changing max MTU size
This might be useful for people with older routers where the connection MTU is actually lower than the router allows.
This commit is contained in:
parent
1e67360048
commit
0c868b16b6
@ -21,7 +21,7 @@
|
||||
"ext-yaml": ">=2.0.0",
|
||||
"ext-zip": "*",
|
||||
"ext-zlib": ">=1.2.11",
|
||||
"pocketmine/raklib": "dev-master#998af685be51d6ee8a1e206066ccd96c21450bfd",
|
||||
"pocketmine/raklib": "dev-master#c29bebd2df63680e975d5d129aa25476f3ef86ba",
|
||||
"pocketmine/pocketmine-spl": "^0.2.0",
|
||||
"pocketmine/pocketmine-binaryutils": "dev-master#a7cd5303a3b215d26bf9be76682ce9311f40e887",
|
||||
"pocketmine/pocketmine-nbt": "dev-master#f8934c0aed90d1f55452588f7ebef7c4519518a5"
|
||||
|
10
composer.lock
generated
10
composer.lock
generated
@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "f13679b4c6a569a758646a63936dbd18",
|
||||
"content-hash": "539efc3616f87bdf637798e9ea4b6125",
|
||||
"packages": [
|
||||
{
|
||||
"name": "pocketmine/pocketmine-binaryutils",
|
||||
@ -111,12 +111,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pmmp/RakLib.git",
|
||||
"reference": "998af685be51d6ee8a1e206066ccd96c21450bfd"
|
||||
"reference": "c29bebd2df63680e975d5d129aa25476f3ef86ba"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/pmmp/RakLib/zipball/998af685be51d6ee8a1e206066ccd96c21450bfd",
|
||||
"reference": "998af685be51d6ee8a1e206066ccd96c21450bfd",
|
||||
"url": "https://api.github.com/repos/pmmp/RakLib/zipball/c29bebd2df63680e975d5d129aa25476f3ef86ba",
|
||||
"reference": "c29bebd2df63680e975d5d129aa25476f3ef86ba",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -141,7 +141,7 @@
|
||||
"source": "https://github.com/pmmp/RakLib/tree/master",
|
||||
"issues": "https://github.com/pmmp/RakLib/issues"
|
||||
},
|
||||
"time": "2018-01-16T19:33:21+00:00"
|
||||
"time": "2018-01-18T18:09:59+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
|
@ -65,7 +65,14 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
|
||||
public function __construct(Server $server){
|
||||
$this->server = $server;
|
||||
|
||||
$this->rakLib = new RakLibServer($this->server->getLogger(), \pocketmine\COMPOSER_AUTOLOADER_PATH, $this->server->getPort(), $this->server->getIp() === "" ? "0.0.0.0" : $this->server->getIp(), false);
|
||||
$this->rakLib = new RakLibServer(
|
||||
$this->server->getLogger(),
|
||||
\pocketmine\COMPOSER_AUTOLOADER_PATH,
|
||||
$this->server->getPort(),
|
||||
$this->server->getIp() === "" ? "0.0.0.0" : $this->server->getIp(),
|
||||
false,
|
||||
(int) $this->server->getProperty("network.max-mtu-size", 1492)
|
||||
);
|
||||
$this->interface = new ServerHandler($this->rakLib, $this);
|
||||
}
|
||||
|
||||
|
@ -91,6 +91,9 @@ network:
|
||||
async-compression: false
|
||||
#Experimental, only for Windows. Tries to use UPnP to automatically port forward
|
||||
upnp-forwarding: false
|
||||
#Maximum size in bytes of packets sent over the network (default 1492 bytes). Packets larger than this will be
|
||||
#fragmented or split into smaller parts. Clients can request MTU sizes up to but not more than this number.
|
||||
max-mtu-size: 1492
|
||||
|
||||
debug:
|
||||
#To enable assertion execution, set zend.assertions in your php.ini to 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user