Commit Graph

287 Commits

Author SHA1 Message Date
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
levlam
abc9ed2cd9 Minor fixes. 2022-07-14 18:38:48 +03:00
levlam
32bac7bd24 Move Promise to tdutils. 2022-06-27 13:30:18 +03:00
levlam
1b5798393d Move FloodControlGlobal to tdutils. 2022-06-09 17:12:59 +03:00
levlam
a30ac1c277 Minor improvements. 2022-06-09 16:38:38 +03:00
Arseny Smirnov
7941672e79 add some kind of global limit for concurrent hanshakes 2022-06-09 11:10:38 +02:00
Arseny Smirnov
852fe4f24b Session: force ack when we received unknown answer 2022-05-03 17:17:36 +04:00
levlam
b4fda2d45a Use FlatHashMap in mtproto and td_json_client. 2022-02-09 16:05:53 +03:00
levlam
822257b90a Resend requests on CONNECTION_NOT_INITED and CONNECTION_LAYER_INVALID errors. 2022-02-07 22:05:01 +03:00
levlam
b1b945e239 Minor fixes. 2022-01-31 15:56:44 +03:00
Arseny Smirnov
452f60be0b SequenceDispatcher: support multiple chains 2022-01-28 17:06:54 +03:00
levlam
dd1e0af5dc Keep connection header for 3 seconds after successful response. 2022-01-06 21:19:07 +03:00
KnorpelSenf
789b9c0a55 Fix much typos 2022-01-25 16:07:36 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
01fccc430f Use explicit cast instead of 1ll. 2021-12-31 09:36:24 +03:00
levlam
a6c0902ad7 Silence g++ warnings. 2021-12-01 16:01:27 +03:00
levlam
746c70900b Use different timeouts for different handshake parts. 2021-11-27 22:22:51 +03:00
levlam
b731414d42 Init some fields just in case. 2021-11-11 17:39:09 +03:00
levlam
2431afc722 Add more logging for CHECK. 2021-10-24 13:23:47 +03:00
levlam
c24501f2d9 Reduce "this" usages. 2021-10-23 21:17:00 +03:00
levlam
0c1469f7c6 Fix TransparentProxy::Callback. 2021-10-22 19:59:15 +03:00