Hi, When I use the "stream" API for sockets and subprocesses, it's unclear to me when the socket is closed and when the process is terminated.
Example using open_connection(): http://docs.python.org/dev/library/asyncio-stream.html#example The socket is not explicitly closed. When will the socket be closed? At the end of the print_http_headers() coroutine? When the last reference to the transport is deleted? Does writer.close() close the socket or not? Maybe only the write end? Same question for subprocesses: if I create a subprocess with pipes, when are these pipes closed? Is there a recommanded way to close them explicitly? Victor
