'Clear input buffer, discarding all that is in the buffer.'

def reset_input_buffer(self):

    if (not self.is_open):
        raise portNotOpenError
    self.rfc2217_send_purge(PURGE_RECEIVE_BUFFER)
    while self._read_buffer.qsize():
        self._read_buffer.get(False)
