'Called by IOLoop periodically to ask libcurl to process any
events it may have forgotten about.'

def _handle_force_timeout(self):

    with stack_context.NullContext():
        while True:
            try:
                (ret, num_handles) = self._multi.socket_all()
            except pycurl.error as e:
                ret = e.args[0]
            if (ret != pycurl.E_CALL_MULTI_PERFORM):
                break
        self._finish_pending_requests()
