Skip to content

Lock ServerCall in ServerCalls re: #151 #157

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
merged 8 commits into from
Aug 11, 2020
Merged

Lock ServerCall in ServerCalls re: #151 #157

merged 8 commits into from
Aug 11, 2020

Conversation

lowasser
Copy link
Collaborator

No description provided.

@lowasser lowasser merged commit ef06b07 into grpc:master Aug 11, 2020
@lowasser lowasser deleted the lock-server-call branch August 11, 2020 20:31
ikhoon added a commit to ikhoon/armeria that referenced this pull request Aug 18, 2020
Motivation:

`CoroutineContextServerInterceptor` is newly introduced in gRPC-Kotlin [0.1.5](https://github.com/grpc/grpc-kotlin/releases/tag/v0.1.5).
Armeria gRPC server can inject the current `RequestContext` to Coroutine Context using it.

The issue that `inHalfClose` unexpectly calls `ServerCall.close()` seems resolved by grpc/grpc-kotlin#157.
I cannot reproduce it anymore.

Modifications:

- Add `ArmeriaCoroutineContextInterceptor` that is working only for gRPC-Kotlin stub.
- Remove `inHalfClose` flag in ArmeriaServerCall

Results:

- You can now get the current `RequestContext` from the Coroutine Context of gRPC-Kotlin by default.
ikhoon added a commit to ikhoon/armeria that referenced this pull request Aug 18, 2020
Motivation:

`CoroutineContextServerInterceptor` is newly introduced in gRPC-Kotlin [0.1.5](https://github.com/grpc/grpc-kotlin/releases/tag/v0.1.5).
Armeria gRPC server can inject the current `RequestContext` to Coroutine Context using it.

The issue that `inHalfClose` unexpectly calls `ServerCall.close()` seems resolved by grpc/grpc-kotlin#157.
I cannot reproduce it anymore.

Modifications:

- Add `ArmeriaCoroutineContextInterceptor` that is working only for gRPC-Kotlin stub.
- Remove `inHalfClose` flag in ArmeriaServerCall

Results:

- You can now get the current `RequestContext` from the Coroutine Context of gRPC-Kotlin by default.
trustin pushed a commit to line/armeria that referenced this pull request Aug 19, 2020
Motivation:

`CoroutineContextServerInterceptor` is newly introduced in gRPC-Kotlin [0.1.5](https://github.com/grpc/grpc-kotlin/releases/tag/v0.1.5).
Armeria gRPC server can inject the current `RequestContext` to Coroutine Context using it.

The issue that `inHalfClose` unexpectly calls `ServerCall.close()` seems resolved by grpc/grpc-kotlin#157.
I cannot reproduce it anymore.

Modifications:

- Add `ArmeriaCoroutineContextInterceptor` that is working only for gRPC-Kotlin stub.
- Remove `inHalfClose` flag in ArmeriaServerCall

Results:

- You can now get the current `RequestContext` from the Coroutine Context of gRPC-Kotlin by default.
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.

1 participant