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

[EventEngine] API contract: Endpoint::Read will provide either an error or data, but never both #38019

Closed
wants to merge 1 commit into from

Conversation

drfloob
Copy link
Member

@drfloob drfloob commented Oct 29, 2024

No description provided.

/// Status.
/// executes. Ownership of the buffer is not transferred. Either an error is
/// passed to the callback (like socket closed), or valid data is available
/// in the buffer, but never both at the same time.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like us to add something along the lines of:
'Implementations that receive valid data must not throw that data away - that is, if valid data is received on the underlying endpoint, a callback will be made with that data available and an ok status.'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this in a followup #38036

eugeneo pushed a commit to eugeneo/grpc that referenced this pull request Nov 6, 2024
…or or data, but never both (grpc#38019)

Closes grpc#38019

COPYBARA_INTEGRATE_REVIEW=grpc#38019 from drfloob:endpoint-cb-xor 9da1fe3
PiperOrigin-RevId: 691149599
paulosjca pushed a commit to paulosjca/grpc that referenced this pull request Nov 25, 2024
…or or data, but never both (grpc#38019)

Closes grpc#38019

COPYBARA_INTEGRATE_REVIEW=grpc#38019 from drfloob:endpoint-cb-xor 9da1fe3
PiperOrigin-RevId: 691149599
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants