Commit Graph

627 Commits

Author SHA1 Message Date
levlam
741272ad8f Don't mark queries as unanswered for extremely slow connections. 2024-06-21 17:12:50 +03:00
levlam
70adbbb9f6 Add current_time to on_pong. 2024-06-21 17:06:20 +03:00
levlam
d2d7cc2fe1 Add ping_time and pong_time to error message. 2024-06-10 18:37:39 +03:00
levlam
7507a4bd05 Minor improvements. 2024-05-23 17:09:28 +03:00
levlam
5e872c3f57 Add define TD_TEST_VERIFICATION. 2024-05-10 01:01:28 +03:00
levlam
76ece1b6e0 Add td_api::setApplicationVerificationToken. 2024-05-10 00:42:51 +03:00
levlam
fcf8f012b4 Add td_api::updateApplicationVerificationRequired. 2024-05-09 23:04:50 +03:00
levlam
d5ac68c067 Add NetQuery::add_verification_prefix. 2024-05-09 22:16:52 +03:00
levlam
25d1bf6466 Fix CHECK. 2024-05-09 21:41:57 +03:00
levlam
12c1689b54 Dispatch net query only after locked check of close_flag_. 2024-05-15 15:38:51 +03:00
levlam
29cd56cab0 Move some NetQuery function implementations to cpp. 2024-05-15 15:05:36 +03:00
levlam
dbd397cb0e Fix some GCC 4.9 compilation errors. 2024-05-08 10:30:02 +03:00
levlam
33073a5022 Add td_api::updateSpeedLimitNotification. 2024-04-08 20:18:48 +03:00
levlam
020415f736 Various fixes. 2024-03-31 18:30:18 +03:00
levlam
e6b9f2eb07 Support sendChatAction for business connections. 2024-03-07 23:05:58 +03:00
levlam
4bc3b380b8 Support sending of queries with a prefix. 2024-03-07 18:37:28 +03:00
levlam
44b42cc659 Support visionOS in TDLib. 2024-03-11 22:47:54 +03:00
levlam
29a8e8062b Don't use std::map and Container to store DC OptionStat. 2024-03-01 14:01:10 +03:00
levlam
f8342527ca Don't resave DcOptions on launch. 2024-02-28 13:47:17 +03:00
levlam
36e95649cc Make AuthData the last field of Session. 2024-02-27 13:51:39 +03:00
levlam
afb8524392 Minor fixes. 2024-02-07 17:50:57 +03:00
levlam
7c3e9e6d5e Move DcAuthManager to main session scheduler. 2024-02-02 13:32:15 +03:00
levlam
6c4804b591 Add source to SessionProxy::close_session. 2024-02-01 12:59:20 +03:00
levlam
90cc7a5f9c Improve logging. 2024-01-24 16:31:47 +03:00
levlam
741c80cf13 Fix log message. 2024-01-24 16:06:43 +03:00
levlam
60f2f75b78 Minor improvements. 2024-01-22 13:11:04 +03:00
levlam
1f116cdd99 Reuse the same PublicRsaKeySharedMain object. 2024-01-22 02:52:58 +03:00
levlam
0dd1934090 Use separate implementations for main and CDN RSA keys. 2024-01-22 02:15:26 +03:00
levlam
e52d08da74 Use PublicRsaKeyInterface in AuthDataShared. 2024-01-22 01:55:16 +03:00
levlam
d5c3456085 Remove default NerQueryDispatcher constructor. 2024-01-22 01:39:31 +03:00
levlam
b4c075593e Log received message info. 2024-01-21 01:50:20 +03:00
levlam
d963044eb9 Update copyright year. 2024-01-01 03:07:21 +03:00
levlam
cd27c67beb Pass-through PREMIUM_SUB_ACTIVE_UNTIL_* errors. 2023-12-26 18:41:41 +03:00
levlam
4dbcfce77d Randomly choose session among sessions with the same minimum query count. 2023-12-19 21:01:32 +03:00
levlam
14ba66fb8b Explicitly disable addProxy for watchOS and Emscripten. 2023-11-24 00:09:36 +03:00
levlam
499d4eaf54 Minor improvements. 2023-11-23 08:31:56 +03:00
levlam
77d6df1437 Use the latest initConnection constructor. 2023-11-20 13:53:42 +03:00
levlam
da9afda7e6 Fix SessionMultiProxy::update_options. 2023-11-08 11:26:37 +03:00
levlam
9c9c1bb51c Minor improvements. 2023-10-28 00:06:56 +03:00
levlam
7097b2bf5b Fix index type. 2023-10-27 23:14:52 +03:00
levlam
f2345d4fcc Remove redundant actor name from log messages. 2023-10-23 15:57:36 +03:00
levlam
9de5b27db2 Destroy auth keys in non-inited internal DCs. 2023-10-23 15:45:38 +03:00
levlam
f2114f34f5 Add DcId::MAX_RAW_DC_ID. 2023-10-23 15:40:57 +03:00
levlam
d5f7423b52 Add static AuthDataShared::get_auth_key_for_dc(). 2023-10-23 15:26:52 +03:00
levlam
4786d1a931 Forcely disable multiple sessions and PFS while destroying auth key. 2023-10-23 14:58:12 +03:00
levlam
9fdc48ac2d Don't use promise emptiness to check that auth keys are being destroyed. 2023-10-23 14:12:25 +03:00
levlam
66757e2511 Improve field names. 2023-10-23 14:10:39 +03:00
levlam
0db2644011 Remove unused constructor parameter. 2023-10-23 14:05:50 +03:00
levlam
29d7916e4d Disallow unneeded canceling of destroy_auth_key. 2023-10-23 14:00:22 +03:00
levlam
8c10e893c0 Remove unused functions from SessionConnection::Callback. 2023-10-23 13:08:45 +03:00