Closed PaulARoy closed 5 months ago
Hello, Thanks, please add some acceptance tests.
Acceptance test added for multiplexer body copy (tested — wasn't passing before modifications and passes after).
I wonder if I could add as acceptance test for buffering, taking suggestions as it's more of an internal mechanism.
All tests on Visual Studio (+ dotnet cake
) pass on my machine and the failing test from CI (should_reload_config_on_change
) doesn't look like something I touched. Maybe the new CI PR I saw? I have the dotnet cake
log file if needed.
@PaulARoy wrote
No need to worry about the should_reload_config_on_change
test; it's an unstable one due to the file system's intensive operations within the Docker environment. The build should not fail following the next commit.
If tests pass locally in VS but fail on CircleCI, consider triggering a new build asking me or making a minor commit—useful or not—as a DevOps CircleCI workaround.
The build is 🟢 now
@PaulARoy It appears that you’ve used the PaulARoy:develop branch as a feature branch which is wrong approach. Here’s the recommended approach:
While it may not be critical for single-ticket work, following this practice will help you avoid complications when dealing with multiple feature branches.
Follow up PR is #2050
Closes #2039
2039
Buffers the body of the request in some cases and copy the buffered body to the downstreams.
Proposed Changes
MemoryStream
buffer for the body whenContent-Length
> 0MemoryStream
CreateThreadContext
name and parameter changes + acceptance test on multiple body forwardingWIP
BufferingMiddleware.BufferBodyAsync:L87
MemoryStream
for downstream bodyMultiplexingMiddleware.CopyBufferToTargetRequestAsync:L253