Define limits of bridge/topic requests and topic response strings

This commit is contained in:
Dominion
2023-04-15 14:36:10 -04:00
parent 7aa578b05e
commit 2bfe6c8895
@@ -33,6 +33,22 @@ namespace Tgstation.Server.Host.Components.Interop
/// </summary>
public const string TopicData = "tgs_data";
/// <summary>
/// The maximum length of a BYOND side bridge request URL.
/// </summary>
/// <remarks>Testing has revealed that response size is effectively limited only by other factors like RAM.</remarks>
public const uint MaximumBridgeRequestLength = 8198;
/// <summary>
/// The maximum length in bytes of a <see cref="global::Byond.TopicSender.ITopicClient"/> payload.
/// </summary>
public const uint MaximumTopicRequestLength = 65529;
/// <summary>
/// The maximum length in bytes of a <see cref="global::Byond.TopicSender.ITopicClient"/> response.
/// </summary>
public const uint MaximumTopicResponseLength = 65528;
/// <summary>
/// The DMAPI <see cref="InteropVersion"/> being used.
/// </summary>