aboutsummaryrefslogtreecommitdiff
path: root/lib/Net.Http/src/HttpBufferConfig.cs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Net.Http/src/HttpBufferConfig.cs')
-rw-r--r--lib/Net.Http/src/HttpBufferConfig.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Net.Http/src/HttpBufferConfig.cs b/lib/Net.Http/src/HttpBufferConfig.cs
index fa3ad21..81fea12 100644
--- a/lib/Net.Http/src/HttpBufferConfig.cs
+++ b/lib/Net.Http/src/HttpBufferConfig.cs
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2023 Vaughn Nugent
+* Copyright (c) 2024 Vaughn Nugent
*
* Library: VNLib
* Package: VNLib.Net.Http
@@ -74,5 +74,11 @@ namespace VNLib.Net.Http
/// May be set to 0 when <see cref="HttpConfig.CompressorManager"/> is set to null (compression is disabled).
/// </summary>
public readonly int ChunkedResponseAccumulatorSize { get; init; } = 64 * 1024;
+
+ /// <summary>
+ /// When a transport connection is closed, dedicated buffers are released back to the
+ /// heap. This setting controls whether the buffers are all zeroed before being released.
+ /// </summary>
+ public readonly bool ZeroBuffersOnDisconnect { get; init; } = true;
}
} \ No newline at end of file