[MSHARED-1072] Poll data from input stream by slawekjaranowski · Pull Request #140 · apache/maven-shared-utils (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@slawekjaranowski

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

@slawekjaranowski

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

@michael-o

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

@slawekjaranowski

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.

michael-o

@jira-importer

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

Labels

bug

Something isn't working