Generate ping_id based on the current time.

This commit is contained in:
levlam 2024-06-21 16:11:06 +03:00
parent 3d0f92e0cb
commit 1c98c0011a
2 changed files with 1 additions and 2 deletions

View File

@ -914,8 +914,8 @@ void SessionConnection::flush_packet() {
MessageId container_message_id;
int64 ping_id = 0;
if (has_salt && may_ping()) {
ping_id = ++cur_ping_id_;
last_ping_at_ = Time::now_cached();
ping_id = auth_data_->next_message_id(last_ping_at_).get();
}
// http_wait

View File

@ -183,7 +183,6 @@ class SessionConnection final
double last_pong_at_ = 0;
double real_last_read_at_ = 0;
double real_last_pong_at_ = 0;
int64 cur_ping_id_ = 0;
MessageId last_ping_message_id_;
MessageId last_ping_container_message_id_;