def send(self, event, payload, sender,
timeout=None, context=None, **kwargs):
# the requests are sorted by url, so we group them into chunks
# each containing a list of requests for that host/port/scheme pair,
# with up to :setting:`THORN_CHUNKSIZE` requests each.
#
# this way requests have a good chance of reusing keepalive
# connections as requests with the same host are grouped together.
return self.as_request_group(self.prepare_requests(
event, payload, sender, timeout, context, **kwargs)).delay()
评论列表
文章目录