Commit Graph

307 Commits

Author SHA1 Message Date
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
levlam
4b7c1aee03 Add and use Random::shuffle. 2023-04-19 10:02:34 +03:00
levlam
cd20d62c9c Rename Op::string to Op::str to avoid ambiguity. 2023-04-19 00:57:46 +03:00
levlam
afefdbcca0 Update another TLS ClientHello. 2023-04-18 18:24:57 +03:00
levlam
35327de43d Update TlsInit. 2023-04-18 13:32:48 +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
70bee089d4 Fix watchOS building. 2023-03-10 13:22:18 +03:00
levlam
aa5093b361 Don't call Callback::on_read for 0 size. 2023-03-08 18:16:08 +03:00
levlam
f670699c8c Improve logging in SessionConnection. 2023-03-08 18:10:07 +03:00
levlam
d2b15d353f Add more logging for invalid pointer alignment. 2023-03-08 13:02:17 +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
de1c6a0ecd Store last handshake query in string instead of BufferSlice. 2023-02-21 11:02:10 +03:00
levlam
5ed1d22d08 Fix watchOS compilation error. 2023-02-06 15:20:09 +03:00
levlam
0adcac246a Use explicit as_mutable_slice to get MutableSlice. 2023-02-02 17:40:47 +03:00
levlam
1588f0d687 Return after call to on_error. 2023-01-18 17:10:08 +03:00
levlam
d7ea7dfea7 Remove never used AbridgedTransport. 2023-01-10 22:03:17 +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
111018eadd Add logging for some slow operations. 2022-09-15 15:03:19 +03:00
levlam
49f8b1e14c Randomize ping delay for different connections. 2022-08-28 00:49:56 +03:00