From 3ff90da4f02af47ea6d233fdd4445337ebe36452 Mon Sep 17 00:00:00 2001 From: vnugent Date: Sat, 30 Mar 2024 21:36:18 -0400 Subject: refactor: Updates, advanced tracing, http optimizations --- lib/Net.Http/src/HttpBufferConfig.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/Net.Http/src/HttpBufferConfig.cs') 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 is set to null (compression is disabled). /// public readonly int ChunkedResponseAccumulatorSize { get; init; } = 64 * 1024; + + /// + /// 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. + /// + public readonly bool ZeroBuffersOnDisconnect { get; init; } = true; } } \ No newline at end of file -- cgit