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

swift: handle gRPC compression errors #515

Merged
merged 1 commit into from
Oct 17, 2019
Merged

swift: handle gRPC compression errors #515

merged 1 commit into from
Oct 17, 2019

Conversation

rebello95
Copy link
Contributor

Updates the Swift gRPC response compression error handling logic to match Android's:

  • Instead of silently failing, call onError in a terminal state and clear out other callbacks
  • Retain the GRPCResponseHandler while the core Envoy engine retains the underlying onData callback to ensure that error and message propogation can be called by the handler

Context: #472 (comment)

Signed-off-by: Michael Rebello [email protected]

Updates the Swift gRPC response compression error handling logic to match Android's:
- Instead of silently failing, call `onError` in a terminal state and clear out other callbacks
- Retain the `GRPCResponseHandler` while the core Envoy engine retains the underlying `onData` callback to ensure that error and message propogation can be called by the handler

Context: #472 (comment)

Signed-off-by: Michael Rebello <[email protected]>
@rebello95 rebello95 mentioned this pull request Oct 17, 2019
@rebello95 rebello95 merged commit 43db967 into master Oct 17, 2019
@rebello95 rebello95 deleted the grpc-swift-err branch October 17, 2019 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants