I find that when I remove the opening of the intermediate file /tmp/xyz.log, then the server is writing to the client back ok ! Would appreciate any pointers on why opening a different file would cause the disassociation of the STDOUT to the client socket