ProcessStreamHandler fixed read loop algorithm
More implementation work