From 9ef1c4f392cc16d647c3f9a3920fe0ba961b55eb Mon Sep 17 00:00:00 2001 From: Marco Hoffmann Date: Mon, 3 May 2021 13:49:23 +0200 Subject: [PATCH] Lowered Max_MSG --- NextClient.cs | 1 + NextCommon.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NextClient.cs b/NextClient.cs index 20fa961..4f2735b 100644 --- a/NextClient.cs +++ b/NextClient.cs @@ -133,6 +133,7 @@ private void OnConnectionStatusChanged(SteamNetConnectionStatusChangedCallback_t } else if (param.m_info.m_eState == ESteamNetworkingConnectionState.k_ESteamNetworkingConnectionState_ClosedByPeer) { + Debug.Log("Connection was closed by peer."); Disconnect(); } else diff --git a/NextCommon.cs b/NextCommon.cs index 0627b56..ad5c5c9 100644 --- a/NextCommon.cs +++ b/NextCommon.cs @@ -7,7 +7,7 @@ public abstract class NextCommon { - protected const int MAX_MESSAGES = 1024; + protected const int MAX_MESSAGES = 256; protected EResult SendSocket(HSteamNetConnection conn, byte[] data, int channelId) {