Skip to content

Commit

Permalink
Merge pull request #67 from sebastian-heinz/feature/respect-log-setting
Browse files Browse the repository at this point in the history
Feature/respect log setting
  • Loading branch information
sebastian-heinz authored Apr 23, 2022
2 parents 006a13b + 37c218b commit 035d247
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Arrowgene.Ddon.Server/ServerLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ public void LogPacketError<TClient>(TClient client, IPacket packet) where TClien

public void LogUnhandledPacket<TClient>(TClient client, IPacket packet) where TClient : Client
{
if (!_setting.LogUnknownPackets)
{
return;
}
Write(LogLevel.Error,
$"UNHANDLED PACKET:{Environment.NewLine}{client.Identity}{Environment.NewLine}{packet}", packet);
}
Expand Down
10 changes: 5 additions & 5 deletions deploy/Arrowgene.Ddon.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@
"Identity": "",
"MaxConnections": 100,
"NumSimultaneouslyWriteOperations": 100,
"BufferSize": 2000,
"BufferSize": 2048,
"Retries": 10,
"MaxUnitOfOrder": 1,
"MaxUnitOfOrder": 8,
"MaxSimultaneousSendsPerClient": 1,
"SocketTimeoutSeconds": -1,
"SocketSettings": {
"Backlog": 5,
"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,
Expand Down

0 comments on commit 035d247

Please sign in to comment.