mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
try to avoid ever blocking when sending messages to kafka
This commit is contained in:
parent
1ddebbc50e
commit
504af2fb0f
@ -13,7 +13,6 @@ Warcprox runs on python 3.4.
|
||||
|
||||
To install latest release run:
|
||||
|
||||
|
||||
::
|
||||
|
||||
# apt-get install libffi-dev libssl-dev python3-gdbm
|
||||
|
2
setup.py
2
setup.py
@ -51,7 +51,7 @@ except:
|
||||
|
||||
setuptools.setup(
|
||||
name='warcprox',
|
||||
version='2.0b2.dev26',
|
||||
version='2.0b2.dev27',
|
||||
description='WARC writing MITM HTTP/S proxy',
|
||||
url='https://github.com/internetarchive/warcprox',
|
||||
author='Noah Levitt',
|
||||
|
@ -32,7 +32,9 @@ class CaptureFeed:
|
||||
def __init__(self, broker_list, topic=None):
|
||||
self.broker_list = broker_list
|
||||
self.topic = topic
|
||||
self._producer = kafka.KafkaProducer(bootstrap_servers=broker_list)
|
||||
# acks=0 to avoid ever blocking
|
||||
self._producer = kafka.KafkaProducer(
|
||||
bootstrap_servers=broker_list, acks=0)
|
||||
|
||||
def notify(self, recorded_url, records):
|
||||
if records[0].type not in (b'revisit', b'response'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user