Skip to content

Commit 1cad32a

Browse files
committed
Set the ASYNC_QUEUE_MAXSIZE to 65536
1 parent 2721a29 commit 1cad32a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kafka/producer/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727

2828
STOP_ASYNC_PRODUCER = -1
2929

30-
# unlimited
31-
ASYNC_QUEUE_MAXSIZE = 0
30+
ASYNC_QUEUE_MAXSIZE = 65536
3231

3332

3433
def _send_upstream(queue, client, codec, batch_time, batch_size,

0 commit comments

Comments
 (0)