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

server_stream keeps disconnecting #312

Open
nulian opened this issue Apr 13, 2023 · 3 comments
Open

server_stream keeps disconnecting #312

nulian opened this issue Apr 13, 2023 · 3 comments
Labels
Milestone

Comments

@nulian
Copy link

nulian commented Apr 13, 2023

Found that connecting with a server with a server stream it keeps disconnecting.

We where trying to connect with the Watch request in spicedb but usually we get auto disconnected.

Also tried the mint adapter it has the same issue but found it on server_stream the open check in connection_process.ex is checked as Mint.HTTP.open?(state.conn, :read) it works correctly.
This is because the connection is half closed by the server read only no writes allowed.

Not sure how to fix it in the gun adapter.

@nulian nulian added the bug label Apr 13, 2023
@polvalente
Copy link
Contributor

Do you have a reproduction for this? Either direct code or more specific conditions in which this problem happens.

@polvalente
Copy link
Contributor

Also, if there's already a known fix for the Mint client, PR is welcome!

@nulian
Copy link
Author

nulian commented Feb 23, 2024

The issue came forward when we had response streaming only

rpc :Watch,
      AuthorizationGrpc.Authorization.WatchRequest,
      stream(AuthorizationGrpc.Authorization.WatchResponse)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants