Avoid duplicate session wake up time logging.
This commit is contained in:
parent
15e9a2bc1f
commit
0c638d3531
@ -1084,6 +1084,7 @@ double SessionConnection::flush(SessionConnection::Callback *callback) {
|
||||
// check error
|
||||
if (status.is_error()) {
|
||||
do_close(std::move(status));
|
||||
LOG(DEBUG) << "Close session because of an error";
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1100,7 +1101,8 @@ double SessionConnection::flush(SessionConnection::Callback *callback) {
|
||||
LOG(DEBUG) << "Last pong was in " << (now - last_pong_at_) << '/' << (now - real_last_pong_at_)
|
||||
<< ", last read was in " << (now - last_read_at_) << '/' << (now - real_last_read_at_)
|
||||
<< ", RTT = " << rtt() << ", ping timeout = " << ping_disconnect_delay()
|
||||
<< ", read timeout = " << read_disconnect_delay() << ", flush packet in " << (flush_packet_at_ - now);
|
||||
<< ", read timeout = " << read_disconnect_delay() << ", flush packet in " << (flush_packet_at_ - now)
|
||||
<< ", wakeup in " << (wakeup_at_ - now);
|
||||
|
||||
return wakeup_at_;
|
||||
}
|
||||
|
@ -1582,12 +1582,8 @@ void Session::loop() {
|
||||
double wakeup_in = 0;
|
||||
if (wakeup_at != 0) {
|
||||
wakeup_in = wakeup_at - now;
|
||||
LOG(DEBUG) << "Wakeup after " << wakeup_in;
|
||||
set_timeout_at(wakeup_at);
|
||||
}
|
||||
// TODO: write proper condition..
|
||||
// LOG_IF(ERROR, !close_flag_ && ((wakeup_at == 0 && network_flag_) || wakeup_in < 0 || wakeup_in > 3000))
|
||||
// << "Bad timeout in: " << wakeup_in;
|
||||
}
|
||||
|
||||
} // namespace td
|
||||
|
Loading…
Reference in New Issue
Block a user