Generate ping_id based on the current time.
This commit is contained in:
parent
3d0f92e0cb
commit
1c98c0011a
@ -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
|
||||
|
@ -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_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user