and so there is a 3rd case somewhere to read chunk...
# development
w
and so there is a 3rd case somewhere to read chunks from a socket and write them to a file like. guessing it already exists somewhere, because that's what the client does when it reads stdout/stderr off the socket.