Commit Graph

303 Commits

Author SHA1 Message Date
levlam
3a203e6674 Add NetQueryDispatcher::set_main_dc_id.
GitOrigin-RevId: 80e660bbaffa0c00a2b85d9c0f73c543397aa3d0
2019-12-17 02:35:58 +03:00
levlam
2714fbf1f8 Fix some preauthentication requests.
GitOrigin-RevId: 1bbbbef17b740140ae99c4972d569306f6ca52ac
2019-12-13 04:00:33 +03:00
levlam
8c495d99e6 Use TRY_RESULT_ASSIGN.
GitOrigin-RevId: 99b60b9044fab9357a3440aed7da55f146677e6b
2019-12-08 09:57:33 +03:00
levlam
03ea8f4a70 Add logging to find_all_connections.
GitOrigin-RevId: f77b467d54add05d2f9440e36693b590a5bd237e
2019-12-05 15:36:32 +03:00
levlam
6b24886bf0 Partial support for scheduled message IDs.
GitOrigin-RevId: 752336efc26fb73a038801b99b490d0f68163b04
2019-11-26 23:47:13 +03:00
levlam
3d614f6ac2 Add support for SLOWMODE_WAIT_* errors.
GitOrigin-RevId: eb54e53668ad24640c1d13b608584eeb675c11d6
2019-11-12 23:05:38 +03:00
levlam
809b28aa4a Better MTProto spelling.
GitOrigin-RevId: d631aa03c2b3b19abe2c804d9a5e1d7d95602693
2019-10-26 16:58:38 +03:00
levlam
1e018da7b8 Various fixes.
GitOrigin-RevId: b09e5fda6d25bd027f6bcbcbbe8324567b8ddcf8
2019-10-22 20:01:15 +03:00
levlam
56c3a2fbed Use td::remove_if.
GitOrigin-RevId: 5cf21381966dc58689a06cc94cb8843fd8087bb9
2019-10-21 16:25:56 +03:00
levlam
0b6c1d226f Update clag-format to the latest (190926/r372920) version.
GitOrigin-RevId: 7861ae8ad28eb1f6a06ff3c6f56eff3f67b1d24c
2019-09-28 05:14:21 +03:00
levlam
f29c4a9ed1 Remove unneded explicit td::.
GitOrigin-RevId: e3888510ce72a55072a11d105311f07b4ba42bbf
2019-09-15 06:19:46 +03:00
levlam
c72ba02d85 Write to the log message when account is banned.
GitOrigin-RevId: 087777440601fc56f9289fc8140497a1553755db
2019-09-02 19:24:50 +03:00
levlam
4d72f8c14b Minor fixes.
GitOrigin-RevId: cc03c7e7a507fab2308495ea23f8ef9630a8142f
2019-08-30 04:56:01 +03:00
levlam
eaca53604a Fix MTProto-proxy usage with bots.
GitOrigin-RevId: ed82547b018fe34c5da6a9b3a98ecb9ed7b39049
2019-08-23 19:38:56 +03:00
levlam
dca95edf27 Add test_flood_wait option.
GitOrigin-RevId: 46cdd7db52a54f47380ae21a9457aad6e95dcc61
2019-08-15 22:10:42 +03:00
levlam
9007f106b9 Update layer 98. Support for legacy messages flag.
GitOrigin-RevId: b10c8b60b7fbdfdbf8ab15e65ed32f1daa6c9ad2
2019-08-15 18:16:09 +03:00
Arseny Smirnov
c2c32c4e2b Session: fix key deletion in http connections
GitOrigin-RevId: ddc80efe78a0a11dee7eb21c55d7efdd76a2be1d
2019-08-01 16:03:18 +03:00
levlam
4531950aaf Remove unused field.
GitOrigin-RevId: 00e6b70cb12fd356f029ee94fb2c3f96e15c8a91
2019-08-01 06:32:49 +03:00
levlam
2b7511d07f Rename AuthState to AuthKeyState.
GitOrigin-RevId: 7211994ddf6e267342ba29010328387093549e5c
2019-07-23 02:14:34 +03:00
levlam
98b8929932 Fix includes.
GitOrigin-RevId: 7b62de39f2d62ac8c14c24fb83041c717ba49873
2019-07-23 01:50:12 +03:00
levlam
410d81c55f Remove ProxyInfo class.
GitOrigin-RevId: f5bc2e82ef1017628b11fe9a0d04e75a08f77c25
2019-07-22 14:32:21 +03:00
levlam
79a38df824 Add actor_name_prefix to prepare_connection parameters.
GitOrigin-RevId: fbfb40411a16c0609a8bd926f2b4f3428e43cd25
2019-07-22 05:55:01 +03:00
levlam
92201f904d Remove proxy IPAddress from ProxyInfo.
GitOrigin-RevId: 1c83e4dc45c3186e887a9922fa77e6b25612c3be
2019-07-22 05:42:19 +03:00
levlam
feb2beeec0 Fix testProxy.
GitOrigin-RevId: 6ad0bf0e7685ccae35931c4949ba29bafbcc6335
2019-07-22 05:04:18 +03:00
Arseny Smirnov
e54c0b0035 Fix merge conflict
GitOrigin-RevId: 8e342e89f5ee116806772fca70bab9eb2606e8e1
2019-07-21 22:00:47 +03:00
Arseny Smirnov
4079363f1a td_api: TestProxy query draft
GitOrigin-RevId: 67944e916813c6260df5be6cb4e77f7163854738
2019-07-20 15:13:36 +02:00
levlam
5de81015ad Add connection_parameters options.
GitOrigin-RevId: 68ad956881c53ea9ee7ca529947737b2d55b585a
2019-07-15 21:37:45 +03:00
levlam
db8539d9df Fix usage of HttpDate in ConfigRecoverer.
GitOrigin-RevId: 17007d6b0afe58a0479d3d596bc4463548a26930
2019-07-11 23:32:45 +03:00
Arseny Smirnov
8fdd8910e7 ConfigRecoverer: support tls obfuscation
GitOrigin-RevId: 9a924ee86fe042a9fd1acf44eeeb25c0ab4e8bbb
2019-07-11 13:25:20 +02:00
Arseny Smirnov
3a9ec3fc29 ConfigRecoverer: support tls obfuscation (not tested)
GitOrigin-RevId: edc982ee6d1ce2834a80464a7b20ef712f465814
2019-07-09 16:45:38 +02:00
levlam
b9e5ebd222 Minor improvements.
GitOrigin-RevId: 684fd2527c31f6fdbc816a2addd64e4740f8a15b
2019-07-09 06:56:06 +03:00
levlam
c626bbefe6 Move Proxy to Proxy.h.
GitOrigin-RevId: b1e4f03b7e49b15ea576e4f05c05c8fe8709e3eb
2019-07-09 05:13:10 +03:00
levlam
7958916080 Add strongly typed ProxySecret class.
GitOrigin-RevId: dbde277c6cce57fd6ff51b2e310dab95e60b38c1
2019-07-09 05:01:12 +03:00
Arseny Smirnov
a695b0823c Better logic for time difference in tls obfuscation
GitOrigin-RevId: bbd69762a4700571ed7c67b4afbf30950b79b638
2019-07-04 18:21:07 +02:00
Arseny Smirnov
e9a7dd637d TlsInit: use server_time_difference
GitOrigin-RevId: 03d93412b660be3a968a4963fb28abafe068a58d
2019-07-04 15:14:11 +02:00
levlam
0a1fb007d9 TlsInit fixes.
GitOrigin-RevId: 798d053d68b6e0955b6e0e0c7c8d36592f76c987
2019-07-01 16:18:28 +03:00
levlam
989235317d Fix ee-secrets.
GitOrigin-RevId: 2fdc60284c6dd4accfe3332accaad945811bbe17
2019-06-30 23:02:32 +03:00
levlam
0c3e3906c7 Temporarily disable new pings.
GitOrigin-RevId: ac3d2580d2dd77b333fee51db59f54b92bf24484
2019-06-27 18:46:25 +03:00
Arseny Smirnov
9289b61b92 ConnectionCreator: use tls init
GitOrigin-RevId: f58530975f30e5341e250478c3f83cabf8947b71
2019-06-26 17:27:19 +02:00
Arseny Smirnov
a569a1eac7 Attempt to fix binlog_pmc_ bug in ConfigSession::HandshakeActor
GitOrigin-RevId: 6486e37b16a39c4088faa5a2aedc674e6feb2e89
2019-06-19 15:56:55 +02:00
levlam
0ef8053f46 Fix pingProxy error messages.
GitOrigin-RevId: 5e5fb84c3970dbaafc037eec550ce7ccc97f5668
2019-06-18 03:17:14 +03:00
levlam
93d45b6502 Fix DcId::create.
GitOrigin-RevId: 5eb39fc73ddd0a0d2ddfae312397c0a9ea26cbfc
2019-06-10 20:00:18 +03:00
levlam
4c781ebb7b Update layer to 98.
GitOrigin-RevId: 7bc09a6ec637f12b2f90bc1fb6d82903feffc376
2019-06-08 12:26:35 +03:00
levlam
b59abdc9f7 Add td_api::searchEmojis.
GitOrigin-RevId: 01540620ce3e0d7e64cb1ec409774a003cfd42e9
2019-05-21 18:48:35 +03:00
levlam
7cd835f4fa Update layer to 97. Support new privacies.
GitOrigin-RevId: d78d9e44557cd1ed77fc83c25986764c4547fb35
2019-05-14 03:18:34 +03:00
levlam
784aaa13d4 Support auto-download settings.
GitOrigin-RevId: f1c41293278fc565777311b0452acdfabb6fdcd9
2019-05-14 02:03:05 +03:00
levlam
4f9887b4bd Minor logging impprovements.
GitOrigin-RevId: 54f2abbd0be6d3ee5cd88ac75f14a660c0201359
2019-05-13 19:34:23 +03:00
levlam
0dde3350ab Update layer to 96.
GitOrigin-RevId: d131512a567520773467dd8d482eb9675b052691
2019-05-12 06:00:24 +03:00
levlam
c2a370262c Better DcId logging.
GitOrigin-RevId: b1fe45b3ecd06ca6869a60124078930b2129b972
2019-05-09 05:01:45 +03:00
levlam
85dd77b02c Initial background support.
GitOrigin-RevId: 14d3a1166f837069c55f40036a633295600524ca
2019-05-07 05:51:56 +03:00
levlam
3ecf990ad6 Update layer to 95.
GitOrigin-RevId: 0d6b470b6ca6f72b5b87fbd899aaeae8892f8834
2019-03-15 16:52:55 +03:00
levlam
43483e743d Update layer to 92: minithumbnails support.
GitOrigin-RevId: a2e3bba42504cdaf91db1e0113bc98c450ba78c9
2019-03-01 22:51:33 +03:00
levlam
34fcde6827 Minor fixes.
GitOrigin-RevId: a5d8a4b0b9b9c4e858d7a9a7403bef0de7e009e0
2019-05-22 21:17:24 +03:00
Arseny Smirnov
11b0da92fe Reuse session_id for pings
GitOrigin-RevId: 39ddb1f925fa05f939a3965300334d5f250550ae
2019-05-10 18:27:18 +02:00
Arseny Smirnov
c99a76f422 Handle -404 error in new ping
GitOrigin-RevId: 3cf88082f0fac9cb82027899c9d276e2d6c439fe
2019-05-09 21:57:35 +02:00
Arseny Smirnov
ef4f719563 Use Ping with mtproto_api::ping if possible
GitOrigin-RevId: fa80dc2a2c44e416bcb50b76ba2bc64de91f8de8
2019-05-06 20:53:39 +02:00
Arseny Smirnov
be006f6cb4 mtproto::Ping two variants with mtproto_api::ping and mtproto_api::req_pq
GitOrigin-RevId: 196d7af132a791615c867cbdbfa23a2fa48327e9
2019-05-06 18:59:49 +02:00
Arseny Smirnov
e3e54b7a53 simple CancellationToken
GitOrigin-RevId: 081b63eac0ac1e45153f2df4a2eea9fa825c9924
2019-05-01 15:13:48 +02:00
levlam
16a209cef0 Use some unused Status responses.
GitOrigin-RevId: b49d15a22918169b5e1a212e5858dc2e9bd2033e
2019-04-28 15:00:06 +03:00
levlam
c62ff7039e Minor fixes.
GitOrigin-RevId: f0ba3402adf4a26d8220d9b5545e9ea18f094e65
2019-04-22 03:46:51 +03:00
levlam
87d505ca82 Better error message on wrong fingerprints.
GitOrigin-RevId: dbb859c02758fbb9e77c6c1cb6d42cb13e008c50
2019-04-21 02:24:51 +03:00
levlam
fe9f1e52d2 Add more DcId checks.
GitOrigin-RevId: ca4bfdc046e78ef7e216c8a5bda8e5ddcd88cfec
2019-04-09 01:37:20 +03:00
levlam
295878b217 Check connection aliveness after push is received.
GitOrigin-RevId: 526a06642617ada66ef6d84f5858cb332f1c1406
2019-03-31 22:29:34 +03:00
levlam
b5407cd6bc Minor fixes.
GitOrigin-RevId: 39fb006dd5d935f6dd0b400114d71391463450eb
2019-03-17 23:43:58 +03:00
Arseny Smirnov
caccb7a9e1 minor fix
GitOrigin-RevId: 6e1b3a3cebcea9311898e3a87da2d7a90b0d0305
2019-03-17 23:29:32 +13:00
Arseny Smirnov
bc3e312a1c bugfix
GitOrigin-RevId: 685e9ffa641803684f9fc98b80508adf9ded2895
2019-03-17 08:50:17 +13:00
Arseny Smirnov
9f9d429832 SessionMultiProxy: use stats to choose session proxy for a query
GitOrigin-RevId: fea88659f3634685b1e0bb1a1c13e98f68d2e4a8
2019-03-15 21:37:01 +11:00
Arseny Smirnov
1785a965d5 SessionMultiProxy: collect stats about sessions
GitOrigin-RevId: 96720f7beca9d34897d8a1076639e58422eac770
2019-03-15 20:00:18 +11:00
levlam
4d5fb2902c Unify names of ParserT/StorerT classes.
GitOrigin-RevId: 69df5062e20cc87c0778e1b125ab46575c365377
2019-02-21 20:54:20 +03:00
levlam
93494cf048 Fix log messages style.
GitOrigin-RevId: f99e2e838220826d3dea7fdc33c43ac9918a5efd
2019-02-21 18:58:20 +03:00
levlam
7890da322b Better actor names for PingActor.
GitOrigin-RevId: 250b34e07669e2df94597afbef3dec9719258ba7
2019-02-20 05:52:09 +03:00
levlam
97c62b48f5 Silence some BOT_METHOD_INVALID errors.
GitOrigin-RevId: d248a663a054029d97dd2884582d01ee4dbb68b1
2019-02-19 21:15:08 +03:00
levlam
8f33e737e1 Ypdate to layer 91.
GitOrigin-RevId: 15675ae2938bbc64dd288fce11cbd9cab1c714e3
2019-02-18 03:27:35 +03:00
levlam
e7fc6f4d58 Update layer to 90.
GitOrigin-RevId: d105e3fe4c4c16764a8062915ad20bb9b8e3f815
2019-02-13 19:05:34 +03:00
levlam
8c3eb953ae Fix some g++4.9 CE.
GitOrigin-RevId: 0d4ed1e684fd623a7ab5849e4f0f7ec2fd182694
2019-02-13 02:29:52 +03:00
levlam
dd398c5968 Fix formatting.
GitOrigin-RevId: 144f91ea1ad0a1f9a8e5e08c4c10f238b066be47
2019-02-13 00:28:47 +03:00
levlam
9b42166c68 Explicitly include common.h.
GitOrigin-RevId: 5ae32c18d0ff18aac36334b494ea526ce7da4a9a
2019-02-13 00:26:36 +03:00
levlam
eb9ead582f Remove unneded includes of td/utils/loggging.h.
GitOrigin-RevId: 82a3b506dba5c9d5267dc0e2504a7093a7fa87db
2019-02-12 23:48:16 +03:00
Arseny Smirnov
20bfcaa979 Use LOG_CHECK where it is necessary
GitOrigin-RevId: a8bd17cc2ee6e43dcea52bb25aef9ee1f91c7ec4
2019-02-12 19:17:20 +03:00
levlam
130b49a524 Various include and other fixes.
GitOrigin-RevId: 68e03e0636cd4cff3e6fa876342ba16453630f15
2019-02-12 19:48:52 +03:00
levlam
0075f91e2e Unify spelling of "expires_".
GitOrigin-RevId: 46aaff38317dd490f9d5a1250e426d94cb8aba75
2019-02-10 03:45:15 +03:00
levlam
bf9842bff1 Update layer to 89.
GitOrigin-RevId: acdaebced325dd66a169264621567b17dd42762c
2019-02-07 23:25:27 +03:00
levlam
a43296fce1 Update layer to 88.
Add webPageInstantView.is_rtl flag.
Add callStateReady.allow_p2p flag.
Add userPrivacySettingAllowPeerToPeerCalls.
Add session.is_password_pending flag.

GitOrigin-RevId: 594dc91a0c38840a224315ca841f74b47e1bf0c0
2019-02-05 01:08:15 +03:00
levlam
f465b460ca Separate scope notification settings for channels.
GitOrigin-RevId: 11d11b2ddba5381d9dcac84768d923fa367f0248
2019-01-29 14:40:56 +03:00
levlam
7d28b73f5e Move DhHandshake to DhHandshake.{cpp,h}.
GitOrigin-RevId: b34d9ae18e2106d3843223bc8609f5a89b6568f6
2019-01-31 14:26:06 +03:00
levlam
b9fc33b7d1 Add TransportType.h.
GitOrigin-RevId: 403b10f5dcc161be411710749c70734cf9a4fc62
2019-01-31 05:13:59 +03:00
levlam
7542612098 Fix some includes.
GitOrigin-RevId: 47d6bcd57e12314cc46c8f23ef10c10cea04fdcb
2019-01-31 05:05:40 +03:00
levlam
45d5c6c626 Allow random-padding connections to server.
GitOrigin-RevId: ebbcd7074837f4d51ec31445a9e8c820472afeee
2019-01-23 06:13:51 +03:00
levlam
73996c6efe Better file_type_name.
GitOrigin-RevId: d3c0c0b88e9dec5348fa72c66d7403507e493e18
2019-01-20 01:59:37 +03:00
levlam
e63d5ec20f Use correct type for file_type_size.
GitOrigin-RevId: 63baf89ab57485f0bc0f902590271c40f34cf151
2019-01-20 01:10:15 +03:00
levlam
e5400074ce Move FileType to FileType.h.
GitOrigin-RevId: 7e35c0f30b7755755b0583704dcfe344cc28d117
2019-01-20 00:54:29 +03:00
Arseny Smirnov
a75726d77a FileManager: file references draft
GitOrigin-RevId: 8d37ee4b5520497df08f49e598ae91825e74e1ea
2018-12-05 12:32:31 +03:00
levlam
d6474dc83d Lazy GetHostByNameActor creation.
GitOrigin-RevId: 423a126e40a77d47cfa8d16889729f3102194724
2019-02-05 01:32:37 +03:00
levlam
0defd8c927 Use Google DNS only if blocking is expected.
GitOrigin-RevId: 9a3b258d1ce9b0f084fb90bb1d86024b0cbee550
2019-02-05 01:24:46 +03:00
levlam
72ac6667ce Never set 0 session_id.
GitOrigin-RevId: 58a7074812fa330930b033d2ffcfcc1ae0e803ec
2019-02-04 19:39:09 +03:00
levlam
f89dbc8148 Make session_id private.
GitOrigin-RevId: c9a942a691a6bc8974d02f0cd0cc0f916c679d61
2019-02-04 18:44:29 +03:00
levlam
fc8917a4ed Rename ResolveType to ResolverType.
GitOrigin-RevId: 64350527620c08bb192a18d951d5b3b5216f1162
2019-02-04 04:36:13 +03:00
levlam
da59ac47ea Support list of resolve types in GetHostByNameActor.
GitOrigin-RevId: 5aabc978b9a6caaecc2bf6c432421b2a4d766559
2019-02-04 04:32:32 +03:00
Arseny Smirnov
c07b26e45c GetHostByNameActor: Options and test
GitOrigin-RevId: afebe6e940b2048d3ef6f6368ff824443d55a909
2019-01-24 17:07:11 +04:00
levlam
424faa44f3 Use KeyValueSyncInterface and BinlogInterface in TdDb.
GitOrigin-RevId: 6e038ac9124855660da72fc64ec131a6e8211055
2019-01-07 02:44:29 +03:00