mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-11 04:01:18 +00:00
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. |
||
---|---|---|
.. | ||
details | ||
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 | ||
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 | ||
sender.h | ||
session_private.cpp | ||
session_private.h | ||
session.cpp | ||
session.h | ||
special_config_request.cpp | ||
special_config_request.h | ||
type_utils.h |