Implemented partial read from client to stdout.