def __init__(self, in_fd, sock, buf_size=io.DEFAULT_BUFFER_SIZE, select_timeout=SELECT_TIMEOUT):
    super(NailgunStreamReader, self).__init__()
    self.daemon = True
    self._stdin = in_fd
    self._socket = sock
    self._buf_size = buf_size
    self._select_timeout = select_timeout
    # N.B. This Event is used as nothing more than a convenient atomic flag - nothing waits on it.
    self._stopped = threading.Event()
:param file in_fd: the input file descriptor (e.g. sys.stdin) to read from.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/java/nailgun_io.py/NailgunStreamReader.__init__