python socket close output stream code example Example: java close tcp socket output stream but not socket socket.shutdownOutput()