Skip to content

Commit 5adca19

Browse files
committed
Add keepalive extra sock opt
1 parent 25b73fb commit 5adca19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/kaffe/config/producer.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ defmodule Kaffe.Config.Producer do
4848
[
4949
auto_start_producers: true,
5050
allow_topic_auto_creation: false,
51+
extra_sock_opts: [keepalive: config_get(:keepalive, false)],
5152
default_producer_config: [
5253
required_acks: config_get(:required_acks, -1),
5354
ack_timeout: config_get(:ack_timeout, 1000),

0 commit comments

Comments
 (0)