Skip to content

Conversation

slawekjaranowski
Copy link
Member

Input stream can be a System.in - all read will be blocked
We need read data in no blocking mode

Input stream can be a System.in - all read will be blocked
We need read data in no blocking mode
@slawekjaranowski slawekjaranowski added the bug Something isn't working label May 6, 2023
@michael-o
Copy link
Member

Does this always apply? Are there cases were in the stream is not stdin?

@slawekjaranowski
Copy link
Member Author

Does this always apply? Are there cases were in the stream is not stdin?

It will be safer to use non blocking io in such case.
Even when stream will be not System.in it will work.

We also can not close provided stream because can be used for multiple executing of invoker.

@slawekjaranowski slawekjaranowski merged commit 1c264ba into master May 8, 2023
@slawekjaranowski slawekjaranowski deleted the MSHARED-1072 branch May 8, 2023 06:36
@jira-importer
Copy link

Resolve #313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants