Skip to content

Commit

Permalink
Log the ping timeout used
Browse files Browse the repository at this point in the history
  • Loading branch information
Bret Ambrose committed Mar 22, 2024
1 parent 7480df5 commit 20ab43b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/v5/mqtt5_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2950,6 +2950,9 @@ static void s_on_pingreq_send(struct aws_mqtt5_client *client) {
connection_ping_timeout = half_keep_alive_nanos;
}

AWS_LOGF_DEBUG(
AWS_LS_MQTT5_CLIENT, "id=%p: dynamic ping timeout: %" PRIu64 " ns", (void *)client, connection_ping_timeout);

client->next_ping_timeout_time = aws_add_u64_saturating(now, connection_ping_timeout);
}

Expand Down

0 comments on commit 20ab43b

Please sign in to comment.