'Process any requests that were completed by the last
call to multi.socket_action.'

def _finish_pending_requests(self):

    while True:
        (num_q, ok_list, err_list) = self._multi.info_read()
        for curl in ok_list:
            self._finish(curl)
        for (curl, errnum, errmsg) in err_list:
            self._finish(curl, errnum, errmsg)
        if (num_q == 0):
            break
    self._process_queue()
