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

Wrong streams sequence #12

Open
carolcarolus opened this issue Jul 9, 2019 · 0 comments
Open

Wrong streams sequence #12

carolcarolus opened this issue Jul 9, 2019 · 0 comments

Comments

@carolcarolus
Copy link

Hi,

I noticed weird behavior of the grpc_client in my application.

I have a client-server application which uses grpc_client:unary(...) function and external msg encoder.

Unfortunately, after sending a large amount of messages in parallel, the server application receives streams in wrong sequence which causes a crash:
1 -> 3 -> 5 -> 7 -> 9 -> 11 -> 15 -> 19 -> 13 -> 21 -> crash
and this is incompatible with rfc7540.

I noticed that grpc_client reserves the new stream ID and after that stats to process message content, including encoding the message(grpc_client_stream.erl). If the sending message is very big it will be encoded(and send) later than the message from the next one streamID. In my opinion this is a bug.

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

No branches or pull requests

1 participant