'Handle a new QNetworkReply.'

def _handle_reply(self, reply):

    if reply.isFinished():
        self.on_reply_finished(reply)
    else:
        timer = QTimer(self)
        timer.setInterval(10000)
        timer.timeout.connect(reply.abort)
        timer.start()
        self._timers[reply] = timer
        reply.finished.connect(functools.partial(self.on_reply_finished, reply))
