Skip to content

Commit

Permalink
Set HeartbeatRequest timeout to session.timeout.ms
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhill committed Oct 26, 2016
1 parent 65258ff commit 702d402
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rdkafka_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -1397,6 +1397,9 @@ void rd_kafka_HeartbeatRequest (rd_kafka_broker_t *rkb,
/* Push write-buffer onto iovec stack */
rd_kafka_buf_autopush(rkbuf);

rkbuf->rkbuf_ts_timeout = rd_clock() +
(rkb->rkb_rk->rk_conf.group_session_timeout_ms * 1000);

rd_kafka_broker_buf_enq_replyq(rkb, RD_KAFKAP_Heartbeat,
rkbuf, replyq, resp_cb, opaque);
}
Expand Down

0 comments on commit 702d402

Please sign in to comment.