Commit Graph

185 Commits

Author SHA1 Message Date
levlam
66757e2511 Improve field names. 2023-10-23 14:10:39 +03:00
levlam
1f66cc7b14 Unconditionally return status to recreate connection. 2023-10-23 12:51:50 +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
83d9f84c5b Improve new_session_created handling. 2023-09-03 02:07:12 +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
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
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
e8d92b0dcb Make MtprotoHeader thread-safe. 2023-07-26 12:48:59 +03:00
levlam
cb7088394e Call Session::loop with send_closure_later to unify stack traces. 2023-07-20 19:12:59 +03:00
levlam
abf32c44cc Simplify capture by value. 2023-07-19 22:41:27 +03:00
levlam
723d09ddee Reduce refresh margin for persistent temp auth keys to speed up recover when the old key reregisters after auth.dropTempAuthKeys. 2023-07-17 19:21:18 +03:00
levlam
583f10706a Improve logging on SessionConnection closure. 2023-07-11 13:42:47 +03:00
levlam
a8c1b24318 Improve error messages. 2023-07-05 16:18:45 +03:00
levlam
f29774acc6 Fix message_id type. 2023-05-14 22:42:58 +03:00
levlam
c9f83caf9f Reset server time difference after a "MessageId is too high" error. 2023-05-14 21:58:54 +03:00
levlam
fc136f46df Randomize temporary auth key validity time. 2023-05-04 16:00:14 +03:00
levlam
648c6cd3ef Improve error message. 2023-05-04 15:13:31 +03:00
levlam
a05453a2c3 Remove unused variable. 2023-04-26 22:36:06 +03:00
levlam
0c638d3531 Avoid duplicate session wake up time logging. 2023-04-20 17:19:38 +03:00
levlam
4938e6dda7 Fix auth.sentCodeSuccess handling. 2023-03-14 21:45:23 +03:00
levlam
57a3773fd6 Call connection_online_update after sending service queries. 2023-03-08 18:27:58 +03:00
levlam
d44351bcd7 Improve error message. 2023-03-05 15:51:00 +03:00
levlam
22fdc0258b Use "receive"/"have"/"loaded" instead of "got" and other log message improvements. 2023-02-26 14:22:31 +03:00
levlam
47724bd4d8 Improve log message spelling. 2023-02-26 13:08:03 +03:00
levlam
a369025cd3 Improve NetQuery debug. 2023-02-20 13:11:39 +03:00
levlam
0adcac246a Use explicit as_mutable_slice to get MutableSlice. 2023-02-02 17:40:47 +03:00
levlam
5a6fb91bd9 Remove unneeded logging. 2023-01-25 17:50:42 +03:00
levlam
2325c5041b Collect statistics about received updates. 2023-01-25 17:48:04 +03:00
levlam
758ced943e Don't use Time::now_cached in Session. 2023-01-19 12:27:23 +03:00
levlam
c508e54a49 Improve message_id variable names in Session. 2023-01-15 23:27:58 +03:00
levlam
8d8f72a17a Fix some lower-case spelling. 2023-01-15 12:00:26 +03:00
levlam
052d5e120b Improve some mixed-case spelling. 2023-01-15 11:25:54 +03:00
levlam
fb935a8de2 Reduce ping timeout in primary non-main-DC connections. 2023-01-15 00:25:22 +03:00
levlam
973df16c88 Improve logging. 2023-01-14 23:08:50 +03:00
levlam
62040c8d8e Fix check for use_pfs. 2023-01-03 15:06:12 +03:00
levlam
903d994799 Improve punctuation. 2023-01-02 15:38:04 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
5a29dcd337 Avoid redundant usages of Status::error(). 2022-10-09 14:15:54 +03:00
levlam
5cb02b8d01 Improve logging for auth key dropping. 2022-09-29 14:50:25 +03:00
levlam
148ded0620 Disable ConfigRecoverer if there are a lot of pending auth keys. 2022-08-10 17:03:38 +03:00
levlam
061c4f65d5 Drop context for SemaphoreActor before creation of the actor. 2022-07-20 10:56:48 +03:00
levlam
ebebe0300c Move promise_send_closure to PromiseFuture.h. 2022-06-28 14:02:14 +03:00