From bd27977b1edace7a536094efb64570db76c74774 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Wed, 19 Jan 2022 09:58:25 -0600 Subject: [PATCH] improve connection resets in CSGO --- IW4MAdmin.sln | 26 +++++++++++++++++++++ Integrations/Source/SourceRConConnection.cs | 3 ++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/IW4MAdmin.sln b/IW4MAdmin.sln index 06e2edeae..cc6d061b7 100644 --- a/IW4MAdmin.sln +++ b/IW4MAdmin.sln @@ -49,6 +49,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ScriptPlugins", "ScriptPlug Plugins\ScriptPlugins\ParserS1x.js = Plugins\ScriptPlugins\ParserS1x.js Plugins\ScriptPlugins\ParserCSGO.js = Plugins\ScriptPlugins\ParserCSGO.js Plugins\ScriptPlugins\ParserCSGOSM.js = Plugins\ScriptPlugins\ParserCSGOSM.js + Plugins\ScriptPlugins\ParserPlutoniumT4COZM.js = Plugins\ScriptPlugins\ParserPlutoniumT4COZM.js EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutomessageFeed", "Plugins\AutomessageFeed\AutomessageFeed.csproj", "{F5815359-CFC7-44B4-9A3B-C04BACAD5836}" @@ -418,6 +419,30 @@ Global {9512295B-3045-40E0-9B7E-2409F2173E9D}.Release|x86.Build.0 = Release|Any CPU {9512295B-3045-40E0-9B7E-2409F2173E9D}.Prerelease|Any CPU.ActiveCfg = Prerelease|Any CPU {9512295B-3045-40E0-9B7E-2409F2173E9D}.Prerelease|Any CPU.Build.0 = Prerelease|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Debug|x64.ActiveCfg = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Debug|x64.Build.0 = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Debug|x86.ActiveCfg = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Debug|x86.Build.0 = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Prerelease|Any CPU.ActiveCfg = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Prerelease|Any CPU.Build.0 = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Prerelease|Mixed Platforms.ActiveCfg = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Prerelease|Mixed Platforms.Build.0 = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Prerelease|x64.ActiveCfg = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Prerelease|x64.Build.0 = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Prerelease|x86.ActiveCfg = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Prerelease|x86.Build.0 = Debug|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Release|Any CPU.Build.0 = Release|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Release|x64.ActiveCfg = Release|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Release|x64.Build.0 = Release|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Release|x86.ActiveCfg = Release|Any CPU + {DBD58E8A-FBD5-4349-824D-F69A8006097B}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -434,6 +459,7 @@ Global {581FA7AF-FEF6-483C-A7D0-2D13EF50801B} = {3065279E-17F0-4CE0-AF5B-014E04263D77} {A9348433-58C1-4B9C-8BB7-088B02529D9D} = {A2AE33B4-0830-426A-9E11-951DAB12BE5B} {9512295B-3045-40E0-9B7E-2409F2173E9D} = {A2AE33B4-0830-426A-9E11-951DAB12BE5B} + {DBD58E8A-FBD5-4349-824D-F69A8006097B} = {A2AE33B4-0830-426A-9E11-951DAB12BE5B} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {84F8F8E0-1F73-41E0-BD8D-BB6676E2EE87} diff --git a/Integrations/Source/SourceRConConnection.cs b/Integrations/Source/SourceRConConnection.cs index 5334a4b0c..7578f1b48 100644 --- a/Integrations/Source/SourceRConConnection.cs +++ b/Integrations/Source/SourceRConConnection.cs @@ -66,6 +66,7 @@ namespace Integrations.Source // ignored } + await Task.Delay(ConnectionTimeout); _rconClient = _rconClientFactory.CreateClient(_ipEndPoint); _authenticated = false; _needNewSocket = false; @@ -183,4 +184,4 @@ namespace Integrations.Source { } } -} \ No newline at end of file +}