Skip to content

swift: handle gRPC compression errors#515

Merged
rebello95 merged 1 commit intomasterfrom
grpc-swift-err
Oct 17, 2019
Merged

swift: handle gRPC compression errors#515
rebello95 merged 1 commit intomasterfrom
grpc-swift-err

Conversation

@rebello95
Copy link
Copy Markdown
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 me@michaelrebello.com

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 <me@michaelrebello.com>
@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