Skip to content

Commit 07e09c1

Browse files
committed
Fixup doc references to max_in_flight_requests_per_connection
1 parent 7690b1a commit 07e09c1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

kafka/conn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ def _send(self, request, expect_response=True):
557557
return future
558558

559559
def can_send_more(self):
560-
"""Return True unless there are max_in_flight_requests."""
560+
"""Return True unless there are max_in_flight_requests_per_connection."""
561561
max_ifrs = self.config['max_in_flight_requests_per_connection']
562562
return len(self.in_flight_requests) < max_ifrs
563563

kafka/producer/kafka.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class KafkaProducer(object):
122122
to resend any record whose send fails with a potentially transient
123123
error. Note that this retry is no different than if the client
124124
resent the record upon receiving the error. Allowing retries
125-
without setting max_in_flight_connections_per_connection to 1 will
125+
without setting max_in_flight_requests_per_connection to 1 will
126126
potentially change the ordering of records because if two batches
127127
are sent to a single partition, and the first fails and is retried
128128
but the second succeeds, then the records in the second batch may

kafka/producer/record_accumulator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def ready(self, cluster):
354354
355355
* There is at least one partition that is not backing off its send
356356
* and those partitions are not muted (to prevent reordering if
357-
max_in_flight_connections is set to 1)
357+
max_in_flight_requests_per_connection is set to 1)
358358
* and any of the following are true:
359359
360360
* The record set is full

0 commit comments

Comments
 (0)