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

The context of func (s *stream) Read(ctx context.Context) (Message, int64, error) does nothing #22

Open
zimmski opened this issue Feb 19, 2022 · 0 comments

Comments

@zimmski
Copy link

zimmski commented Feb 19, 2022

I just banged my head against the keyboard for a while figuring out why a read operation of our language server is never canceled. Turns out that the "ctx" of "stream.Read" does nothing. One cannot cancel that read operation.

I was wondering why it is implemented like that?

I want to achieve the following:

  • Read as long there is data, or a timeout
  • If the timeout occurs stop reading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant