Commit Graph

123 Commits

Author SHA1 Message Date
levlam
b29a2b1ba2 Close connection if receive no answer for destroy_auth_key for 60 seconds. 2023-10-23 13:02:04 +03:00
levlam
605a3af4b2 Add and use td::any_of. 2023-10-21 20:41:31 +03:00
levlam
fab24473ca Fix processing of unexpected DestroyAuthKeyRes. 2023-10-15 21:25:07 +03:00
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
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
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
d87cc2b143 Simplify mtproto::Transport::write usage. 2023-09-09 22:49:45 +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
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
44c58ee242 Move logging of OS freezes to WARNING. 2023-07-22 14:06:57 +03:00
levlam
b48668e8bb Fix misprint. 2023-05-16 21:53:55 +03:00
levlam
43e4746d2a Remove uninitialized MsgInfo.session_id. 2023-05-15 19:40:27 +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
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
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
levlam
e2d3f2694f Improve future salts logging. 2023-04-03 19:55:12 +03:00
levlam
55223c394f Fix misprint. 2023-04-03 12:15:44 +03:00
levlam
fb4d0daa2f Improve names of some variables. 2023-04-03 01:24:43 +03:00
levlam
1673d2366b Log real pong/read time. 2023-03-14 15:45:01 +03:00
levlam
28e788995a Fix log message. 2023-03-14 15:30:43 +03:00
levlam
f670699c8c Improve logging in SessionConnection. 2023-03-08 18:10:07 +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
ffcc1719ef Improve log message spelling. 2023-02-26 13:41:49 +03:00
levlam
0adcac246a Use explicit as_mutable_slice to get MutableSlice. 2023-02-02 17:40:47 +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
1f129ecade Simplify update logging. 2022-12-11 01:20:13 +03:00
levlam
8e196d2570 Increase limits for slow operations logging. 2022-09-23 22:29:18 +03:00
levlam
3a579dd5cb Improve warning on long RawConnection::flush. 2022-09-20 17:46:10 +03:00
levlam
74879d9726 Move PerfWarningTimer to SessionConnection::do_flush. 2022-09-19 21:33:23 +03:00
levlam
49f8b1e14c Randomize ping delay for different connections. 2022-08-28 00:49:56 +03:00
Arseny Smirnov
852fe4f24b Session: force ack when we received unknown answer 2022-05-03 17:17:36 +04:00