-
Notifications
You must be signed in to change notification settings - Fork 22
Refactor main pipeline for proxy orchestration #391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…, remove unecessary event bindig
… into dev/smooth-h2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the main proxy orchestration pipeline to improve handling of H2 connections from DownStream. Key changes include replacing ILocalLink with IDownStreamPipe across multiple clients, introducing an ExchangeScope parameter in several method signatures, and updating asynchronous patterns (e.g. using direct task calls and memory pool allocation).
Reviewed Changes
Copilot reviewed 43 out of 43 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/Fluxzy.Core/Core/ConnectionErrorHandler.cs | Replaces exchangeInitResult with downStreamPipe and updates error message text. |
src/Fluxzy.Core/Clients/Mock/MockedConnectionPool.cs | Updates method signature to use IDownStreamPipe and adds an ExchangeScope parameter. |
src/Fluxzy.Core/Clients/IRemoteConnectionBuilder.cs | Refactors connection establishment to use connectResult and stream extraction from it. |
src/Fluxzy.Core/Clients/IHttpConnectionPool.cs | Adjusts Send method signature for downstream pipe and exchange scope. |
src/Fluxzy.Core/Clients/H2/H2ConnectionPool.cs | Removes Task.Run wrappers when starting internal read/write loops and updates buffer handling. |
src/Fluxzy.Core/Clients/H11/* | Updates Send and Process methods to adopt IDownStreamPipe and ExchangeScope. |
src/Fluxzy.Core/Clients/DotNetBridge/* | Introduces and disposes ExchangeScope in Http handlers. |
src/Fluxzy.Core.Pcap/* | Refactors connection provider and connection classes for improved capture context handling. |
Comments suppressed due to low confidence (3)
src/Fluxzy.Core/Core/ConnectionErrorHandler.cs:170
- The word "occured" is misspelled. Please update it to "occurred".
var message = "A configuration error has occured.\r\n";
src/Fluxzy.Core/Clients/Mock/MockedConnectionPool.cs:42
- [nitpick] The parameter name '__' is unclear and may lead to confusion; consider using '_' to denote an unused parameter or a more descriptive name if it has a purpose.
ExchangeScope __,
src/Fluxzy.Core/Clients/H2/H2ConnectionPool.cs:118
- Removing Task.Run may change the scheduling and error propagation behavior of the read loop. Confirm that executing the loop directly (without Task.Run) is intentional and does not adversely affect concurrency or exception handling.
_innerReadTask = InternalReadLoop(_connectionToken);
The goal of this refactoring is mainly to facilitate handling H2 connection from DownStream