I like stream->accepted_fd != -1 better :-)