diff options
author | vnugent <public@vaughnnugent.com> | 2024-09-23 21:54:21 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-09-23 21:54:21 -0400 |
commit | 8da9685d9bf3fcd73a775cb7306e4e188cfa214b (patch) | |
tree | c7477e48170aa563ddcbec11dafefa1611397199 /lib/Net.Http/src | |
parent | dd9d2aa0a1db1486ed35716e49d006db9c1f55b0 (diff) |
feat: scoped spans for forward writer & tests to sln
Diffstat (limited to 'lib/Net.Http/src')
-rw-r--r-- | lib/Net.Http/src/Core/Request/HttpRequest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Net.Http/src/Core/Request/HttpRequest.cs b/lib/Net.Http/src/Core/Request/HttpRequest.cs index cbe6bc0..b20427e 100644 --- a/lib/Net.Http/src/Core/Request/HttpRequest.cs +++ b/lib/Net.Http/src/Core/Request/HttpRequest.cs @@ -123,7 +123,7 @@ namespace VNLib.Net.Http.Core private void FreeUploadBuffers() { //Dispose all initialized files, should be much faster than using Array.Clear(); - for (int i = 0; i < _uploads.Length; i++) + for (int i = 0; i < maxUploads; i++) { _uploads[i].Free(); _uploads[i] = default; @@ -136,7 +136,7 @@ namespace VNLib.Net.Http.Core /// Checks if another upload can be added to the request /// </summary> /// <returns>A value indicating if another file upload can be added to the array</returns> - public bool CanAddUpload() => _state.UploadCount < _uploads.Length; + public bool CanAddUpload() => _state.UploadCount < maxUploads; /// <summary> /// Attempts to obtain a reference to the next available |