From 26c5e6f9eb38454f0f509340431beeed6dadd83a Mon Sep 17 00:00:00 2001 From: sebastian-heinz Date: Sat, 23 Apr 2022 10:20:24 +0800 Subject: [PATCH 1/3] respect log setting for unhandled packets --- Arrowgene.Ddon.Server/ServerLogger.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Arrowgene.Ddon.Server/ServerLogger.cs b/Arrowgene.Ddon.Server/ServerLogger.cs index 7004cd56c..8d4066b5f 100644 --- a/Arrowgene.Ddon.Server/ServerLogger.cs +++ b/Arrowgene.Ddon.Server/ServerLogger.cs @@ -153,6 +153,10 @@ public void LogPacketError(TClient client, IPacket packet) where TClien public void LogUnhandledPacket(TClient client, IPacket packet) where TClient : Client { + if (!_setting.LogUnknownPackets) + { + return; + } Write(LogLevel.Error, $"UNHANDLED PACKET:{Environment.NewLine}{client.Identity}{Environment.NewLine}{packet}", packet); } From 37c218b58d53d3b4f2195d0168ab391343c60738 Mon Sep 17 00:00:00 2001 From: sebastian-heinz Date: Sat, 23 Apr 2022 10:28:57 +0800 Subject: [PATCH 2/3] tweak socket settings --- deploy/Arrowgene.Ddon.config.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deploy/Arrowgene.Ddon.config.json b/deploy/Arrowgene.Ddon.config.json index 310a98eb5..354d9b4c5 100644 --- a/deploy/Arrowgene.Ddon.config.json +++ b/deploy/Arrowgene.Ddon.config.json @@ -29,9 +29,9 @@ "Identity": "", "MaxConnections": 100, "NumSimultaneouslyWriteOperations": 100, - "BufferSize": 2000, + "BufferSize": 2048, "Retries": 10, - "MaxUnitOfOrder": 1, + "MaxUnitOfOrder": 8, "MaxSimultaneousSendsPerClient": 1, "SocketTimeoutSeconds": -1, "SocketSettings": { @@ -39,11 +39,11 @@ "DontFragment": true, "DualMode": false, "ExclusiveAddressUse": false, - "NoDelay": false, + "NoDelay": true, "UseOnlyOverlappedIo": false, - "ReceiveBufferSize": 8192, + "ReceiveBufferSize": 2048, "ReceiveTimeout": 0, - "SendBufferSize": 8192, + "SendBufferSize": 2048, "SendTimeout": 0, "Ttl": 32, "LingerEnabled": false, From 100cfd49aed347cd366c52614655d896395af6b3 Mon Sep 17 00:00:00 2001 From: alborrajo <38296782+alborrajo@users.noreply.github.com> Date: Sat, 23 Apr 2022 14:16:26 +0200 Subject: [PATCH 3/3] Update README to reflect HTTP port change --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6c21d4f0a..bb3cf3b5f 100644 --- a/README.md +++ b/README.md @@ -63,9 +63,9 @@ ensure that no other local services listen on these ports. # Client Launch the client with the following args: -`"DDO.exe" "addr=localhost port=52100 token=00000000000000000000 DL=http://127.0.0.1/win/ LVer=03.04.003.20181115.0 RVer=3040008"` +`"DDO.exe" "addr=localhost port=52100 token=00000000000000000000 DL=http://127.0.0.1:52099/win/ LVer=03.04.003.20181115.0 RVer=3040008"` -#Development +# Development ## Project ### Cli Entrypoint to the application, allows to start different components via parameters