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

Update order of operations in ConfigureKestrel in interprocess.md #32590

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maartenjorens
Copy link

@maartenjorens maartenjorens commented May 16, 2024

If the ListenUnixSocket method is called before ConfigureEndpointsDefault with Http2 as Protocols in ConfigureKestrel, the following Exception is thrown by a client trying to communicate over that socket:

Call failed with gRPC error status. Status code: 'Internal', Message: '"Error starting gRPC call. HttpRequestException: The HTTP/2 server closed the connection. HTTP/2 error code 'HTTP_1_1_REQUIRED' (0xd). (HttpProtocolError) HttpProtocolException: The HTT P/2 server closed the connection. HTTP/2 error code 'HTTP_1_1_REQUIRED' (0xd). (HttpProtocolError)"'.

This can be solved by adding EndpointDefaults with Http2 as Protocols to your appsettings, or by changing the order in which the methods are called.


Internal previews

📄 File 🔗 Preview link
aspnetcore/grpc/interprocess.md Inter-process communication with gRPC

If the ListenUnixSocket method is called before ConfigureEndpointsDefault with Http2 as Protocols in ConfigureKestrel, the following Exception is thrown by a client trying to communicate over that socket:

Call failed with gRPC error status. Status code: 'Internal', Message: '"Error starting gRPC call. HttpRequestException: The HTTP/2 server closed the connection. HTTP/2 error code 'HTTP_1_1_REQUIRED' (0xd). (HttpProtocolError) HttpProtocolException: The HTT
P/2 server closed the connection. HTTP/2 error code 'HTTP_1_1_REQUIRED' (0xd). (HttpProtocolError)"'.

This can be solved by adding EndpointDefaults with Http2 as Protocols to your appsettings, or by changing the order in which the methods are called.
@Rick-Anderson Rick-Anderson self-assigned this May 23, 2024
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