-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring and of FrameConnection and Frame (#1816)
* Refactoring and of FrameConnection and Frame - Building on top of the last refactoring of FrameConnection, this change aims to clean up the communication between the Frame and FrameConnection by removing some concepts and being consistent about the communication between Frame and FrameConnection with or without connection adapters. Changes include: - Removing ConnectionLifetimeControl, ISocketOutput, StreamSocketOutput - Moving more initialization of the frame to FrameConnection after the pipes are setup - OutputProducer communicates cancellation via the IPipeWriter instead of the output's IPipeReader. - Frame always communicates via the pipes and that communications flows through the layers to the transport. This means that each 1/2 of the adapted pipeline handles closing the right side of the transport at the right time, propagating exceptions as necessary. - This is how the flow looks now: -> -> [transport] [connection adapters] [frame] <- <- - Transports need to handle a ConnectionAbortedException on the output as a signal to stop writing and end the connection. This will no longer try to drain the output but will just stop writing and end the response immediately. - Remove frame.Abort when cancellation on Write fails. - Unify the connection shutdown logic - Dispose 1/2 initialized connection adapters #1815
- Loading branch information
Showing
25 changed files
with
411 additions
and
630 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.