kotatogram-desktop/Telegram/SourceFiles/mtproto
Loïc Molinari 06618a5253 Use fine grained session timers
The check of sent requests and containers is done unconditionally
every second even though the request timeout is 10 seconds and the
container timeout is 600 seconds. This commit uses fine grained timers
instead in order to avoid useless system wake-up events.

The check of sent requests is now scheduled on demand when a new
request is queued. Then the callback, while parsing queued requests,
computes the delta to the closest expiring request and automatically
schedules the next check if necessary.

Given the high value of the container timeout, its callback is called
repeatedly every 600 seconds, unless it computes a lower delta for an
expiring container using the same logic as for the requests.
2021-04-15 16:20:42 +03:00
..
details Fix build on macOS and Linux. 2021-04-12 10:48:17 +04:00
config_loader.cpp
config_loader.h
connection_abstract.cpp
connection_abstract.h
connection_http.cpp
connection_http.h
connection_resolving.cpp
connection_resolving.h
connection_tcp.cpp
connection_tcp.h
core_types.h
dedicated_file_loader.cpp
dedicated_file_loader.h
facade.cpp
facade.h
mtp_instance.cpp Watch for network availability changes 2021-04-06 16:40:29 +03:00
mtp_instance.h
mtproto_auth_key.cpp
mtproto_auth_key.h
mtproto_concurrent_sender.cpp
mtproto_concurrent_sender.h
mtproto_config.cpp
mtproto_config.h
mtproto_dc_options.cpp
mtproto_dc_options.h
mtproto_dh_utils.cpp
mtproto_dh_utils.h
mtproto_pch.h
mtproto_proxy_data.cpp
mtproto_proxy_data.h
mtproto_response.cpp
mtproto_response.h Allow saving and using saved credentials. 2021-04-06 18:41:16 +04:00
sender.h
session.cpp Remove dangling timer in MTP Session 2021-04-12 12:03:15 +03:00
session.h Remove dangling timer in MTP Session 2021-04-12 12:03:15 +03:00
session_private.cpp Use fine grained session timers 2021-04-15 16:20:42 +03:00
session_private.h Use fine grained session timers 2021-04-15 16:20:42 +03:00
special_config_request.cpp
special_config_request.h
type_utils.h