Skip to content
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

feat(captp): handle send rejections #2427

Merged
merged 2 commits into from
Aug 24, 2024
Merged

Conversation

michaelfig
Copy link
Member

Closes: #2412

Description

Have CapTP abort the connection if send returns a promise rejection. The existing implementation only aborted if send threw a synchronous exception.

Security Considerations

Crisper handling of async transport-layer failures.

Scaling Considerations

n/a

Documentation Considerations

Allows effective use of async CapTP send functions.

Testing Considerations

Usual CI.

Compatibility Considerations

Will abort the connection if an async send rejects. Before, the rejection was ignored.

Upgrade Considerations

n/a

@michaelfig michaelfig added bug Something isn't working enhancement New feature or request labels Aug 23, 2024
@michaelfig michaelfig self-assigned this Aug 23, 2024
@michaelfig michaelfig requested a review from kriskowal August 23, 2024 16:58
@michaelfig michaelfig force-pushed the mfig-2412-rejected-send branch from 2db2d37 to 6115cb1 Compare August 24, 2024 00:36
@michaelfig michaelfig force-pushed the mfig-2412-rejected-send branch 2 times, most recently from 6817b65 to 418df3f Compare August 24, 2024 00:41
@michaelfig michaelfig force-pushed the mfig-2412-rejected-send branch from 418df3f to 7201ae4 Compare August 24, 2024 00:43
@michaelfig michaelfig merged commit 35636d9 into master Aug 24, 2024
17 checks passed
@michaelfig michaelfig deleted the mfig-2412-rejected-send branch August 24, 2024 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

makeCapTP() accepts async send() functions, but does not handle rejected promises
2 participants