-
Notifications
You must be signed in to change notification settings - Fork 116
Propagate Connection Closed Information up to top-level (fix #465) #545
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
Merged
sebsto
merged 36 commits into
swift-server:main
from
sebsto:sebsto/shutdown_on_lost_connection
Sep 1, 2025
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
2020d6b
return HTTP accepted on error
sebsto 6e01c6e
force exit() when we loose connection to Lambda service
sebsto 166cd46
propagate the connection closed info through a Future
sebsto a69ed54
fix typos
sebsto 04d9fc7
fix unit tests
sebsto 092da82
Merge branch 'main' into sebsto/shutdown_on_lost_connection
sebsto 5efb706
Merge branch 'main' into sebsto/shutdown_on_lost_connection
sebsto 1d98a7c
Merge branch 'main' into sebsto/shutdown_on_lost_connection
sebsto 4b23d4f
Merge branch 'main' into sebsto/shutdown_on_lost_connection
sebsto 5822e0a
Merge branch 'main' into sebsto/shutdown_on_lost_connection
sebsto 025a0e5
simplify by checking connection state in the `nextInvocation()` call
sebsto ce8b567
introducing a new connection state "lostConnection"
sebsto be4cb20
add state change
sebsto b37ea0e
fix lost continuation
sebsto cd00948
fix compilation error
sebsto 008c542
DRY: move the error handling to the _run() function
sebsto 9dcb4b3
fix a case where continuation was resumed twice
sebsto f2d94a2
fix unit test
sebsto 852391e
swift format
sebsto b13bf5c
remove comment on max payload size
sebsto 1aa07b1
Merge branch 'main' into sebsto/shutdown_on_lost_connection
sebsto 9c283c3
further simplify by removing the new state `lostConnection`
sebsto a620a2f
remove unecessary code
sebsto f671228
restrict access to channel handler state variable
sebsto b0234f5
add a unit test to verify that an error is thrown when the connection…
sebsto 482e09e
swift-format
sebsto 156e6c7
make sure connectionToControlPlaneLost error is triggered by the test
sebsto a0b1d57
give more time to the server to close the connection
sebsto 54459e0
add catch for IOError
sebsto 89cd259
swift-format
sebsto 6b07955
remove compilation warning
sebsto 86ccbf4
improve test with a timeout
sebsto cbf9c5e
remove debugging print statements
sebsto 9a70915
add logger trace
sebsto c54cb2f
fulfill continuation in channelInactive() rather than channel.closeF…
sebsto ccb3d14
remove private(set) on LambdaChannelHandler.state
sebsto File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.