Chunked reading from socket