Commit Graph

335 Commits

Author SHA1 Message Date
levlam
df563e781e Explicitly specify TLObjectStorer's template parameter. 2023-09-21 21:31:59 +03:00
levlam
4c8ab2bf29 Send at most 1000 queries in a container. 2023-09-21 21:22:33 +03:00
levlam
14af252795 Improve names of create_*_storer functions. 2023-09-21 21:19:18 +03:00
levlam
0362411550 Minor improvements. 2023-09-21 19:01:17 +03:00
levlam
dc4b5aad51 Return nothing from RawConnection::send_no_crypto. 2023-09-21 17:56:21 +03:00
levlam
b44e2ea3fc Add strictly-typed class mtproto::MessageId. 2023-09-21 17:52:33 +03:00
levlam
e47cea5904 Improve SessionConnection::ServiceQuery. 2023-09-21 16:52:21 +03:00
levlam
5334cc8e10 Improve types of vectors in SessionConnection. 2023-09-21 16:47:12 +03:00
levlam
7e65c3d4dd Improve message_id-parameter names. 2023-09-21 16:09:19 +03:00
levlam
1cd71efb03 Improve "container_message_id" variable names. 2023-09-21 15:44:26 +03:00
levlam
ec44b3d16c Improve "invoke_after_message_id" variable names. 2023-09-21 15:40:56 +03:00
levlam
518f11f40a Log message identifiers as hex numbers. 2023-09-19 21:10:11 +03:00
levlam
291b9ce5f9 Minor improvements. 2023-09-10 01:12:40 +03:00
levlam
f67173dd08 Make struct MsgInfo private. 2023-09-10 00:30:49 +03:00
levlam
efba70c2ef Unify names of PacketInfo variables. 2023-09-10 00:04:55 +03:00
levlam
4da0f76d2a Remove PacketInfo.size. 2023-09-09 23:51:40 +03:00
levlam
4a36186662 Avoid repeated calls to Transport::write_*. 2023-09-09 23:46:56 +03:00
levlam
d87cc2b143 Simplify mtproto::Transport::write usage. 2023-09-09 22:49:45 +03:00
levlam
d47c862560 Avoid duplicate calculation of padded_size. 2023-09-09 22:22:35 +03:00
levlam
32049258d2 Improve MTProto response logging. 2023-09-09 00:13:42 +03:00
levlam
514a49b137 Remove dedicated handling for mtproto_api::rpc_error. 2023-09-08 20:02:21 +03:00
levlam
a1d0808d9f Remove auth_key_id from PacketInfo. 2023-09-08 19:18:38 +03:00
levlam
31f778e040 Remove message_key from PacketInfo. 2023-09-08 19:06:34 +03:00
levlam
83d9f84c5b Improve new_session_created handling. 2023-09-03 02:07:12 +03:00
levlam
f1a064c249 Initialize ping_storer_ after other storers to ensure increasing message_id order in the container. 2023-09-03 01:47:50 +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
0e9b4be29f Add auth_key_id to error messages. 2023-08-20 21:00:42 +03:00
levlam
28961b7d0e Add more common.h includes. 2023-08-05 16:09:36 +03:00
levlam
44c58ee242 Move logging of OS freezes to WARNING. 2023-07-22 14:06:57 +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
9aed145fa1 Don't treat temp auth key as invalid before it is actually expired. 2023-07-17 19:04:39 +03:00
levlam
cebea14b03 Add logging for RawConnection life cycle. 2023-06-16 15:16:03 +03:00
levlam
66234ae253 Fix IPv6 usage on WatchOS. 2023-06-11 13:25:06 +03:00
levlam
e1ecdf8399 Check wait_size and quick_ack first. 2023-05-26 13:24:55 +03:00
levlam
5a59c933fb Add missing semicolons after CHECK. 2023-05-22 19:31:58 +03:00
levlam
5b09f60629 Log message_id of all outgoing messages. 2023-05-17 13:19:40 +03:00
levlam
bce488f6bf Log message_id of all incoming packets. 2023-05-17 13:00:21 +03:00
levlam
b48668e8bb Fix misprint. 2023-05-16 21:53:55 +03:00
levlam
7df9b39186 Improve logging of server time difference updates. 2023-05-15 20:23:38 +03:00
levlam
43e4746d2a Remove uninitialized MsgInfo.session_id. 2023-05-15 19:40:27 +03:00
levlam
93d283aca6 Improve parameter names. 2023-05-15 19:30:44 +03:00
levlam
5d499d594c Reset server time difference if it is more than 15 seconds in the future. 2023-05-14 23:11:23 +03:00
levlam
a395337265 Fix session_id type. 2023-05-14 23:00:56 +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
edf0aaaa2a Fix misprint in error message. 2023-05-14 01:41:23 +03:00
levlam
796a1f83c3 Support saving and loading of temporary auth keys. 2023-05-04 15:44:39 +03:00
levlam
78c41b9fef Use local variable for wakeup_at. 2023-04-20 17:24:30 +03:00
levlam
0c638d3531 Avoid duplicate session wake up time logging. 2023-04-20 17:19:38 +03:00