Commit Graph

596 Commits

Author SHA1 Message Date
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
levlam
1f66cc7b14 Unconditionally return status to recreate connection. 2023-10-23 12:51:50 +03:00
levlam
605a3af4b2 Add and use td::any_of. 2023-10-21 20:41:31 +03:00
levlam
7a6d6cf492 Fix max_proxy_id_ initialization. 2023-10-14 03:06:01 +03:00
levlam
12ffa253b3 Remove empty stored proxy from binlog. 2023-10-12 23:48:40 +03:00
levlam
eed6e0bba6 Don't try to init proxies if they have never been added. 2023-10-12 23:41:46 +03:00
levlam
b44e2ea3fc Add strictly-typed class mtproto::MessageId. 2023-09-21 17:52:33 +03:00
levlam
ec44b3d16c Improve "invoke_after_message_id" variable names. 2023-09-21 15:40:56 +03:00
levlam
8fb3fca841 Improve error logging for banned accounts. 2023-09-20 21:28:23 +03:00
levlam
0ada45c361 Fix video story network statistics. 2023-09-11 17:02:58 +03:00
levlam
83d9f84c5b Improve new_session_created handling. 2023-09-03 02:07:12 +03:00
levlam
049d84beed Always call fetch_result on the whole NetQueryPtr. 2023-09-02 22:39:26 +03:00
levlam
ce2e7192d7 Improve NetQueryPtr variable names. 2023-09-02 22:20:05 +03:00
levlam
db8f41eacf Automatically reset cancel_slot in NetQuery::set_message_id. 2023-09-01 16:53:15 +03:00
levlam
c432a24dd4 Simplify calls to Session::resend_query. 2023-09-01 16:48:25 +03:00
levlam
ba0d2408f2 Improve handling of new_session_created. 2023-09-01 16:40:19 +03:00
levlam
55e5b2395e Mark sent_at_ as const. 2023-09-01 16:13:00 +03:00
levlam
5ce5ef6234 Save all state flags to ack_state_. 2023-09-01 16:11:21 +03:00
levlam
8b05c4f3ec Improve ack state. 2023-08-31 23:59:46 +03:00
levlam
53b48b4ee8 Improve Session::Query field names. 2023-08-31 00:47:39 +03:00
levlam
b90bc7be4b Remove unsafe non-const NetQuery accessors. 2023-08-30 18:25:26 +03:00
levlam
eb06c93532 Simplify NetQuery creation. 2023-08-30 18:13:35 +03:00
levlam
62eaa0b5a9 Improve NetQuery logging. 2023-08-30 17:58:37 +03:00
levlam
0e9b4be29f Add auth_key_id to error messages. 2023-08-20 21:00:42 +03:00
levlam
fd2df72321 Add td_api::canSendStory. 2023-08-11 19:43:26 +03:00
levlam
28961b7d0e Add more common.h includes. 2023-08-05 16:09:36 +03:00
levlam
830da27abf Minor improvements. 2023-08-05 15:31:42 +03:00
levlam
32043df840 Parse updates in another thread. 2023-07-27 12:52:29 +03:00
levlam
38fe2d7cb2 Support NetQueryCreator without Scheduler. 2023-07-26 14:46:31 +03:00
levlam
968bfc48df Move main Session to database scheduler if there is no database. 2023-07-26 13:13:21 +03:00
levlam
e8d92b0dcb Make MtprotoHeader thread-safe. 2023-07-26 12:48:59 +03:00
levlam
1ab81f426c Ensure that NetQueryCreator doesn't access Td from another thread. 2023-07-26 12:29:36 +03:00