Commit Graph

417 Commits

Author SHA1 Message Date
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
levlam
5438119bb4 Fix Global.h and TdDb.h includes.
GitOrigin-RevId: 89fa1ee3e8071ad3f27687f79d1a52de113f9705
2019-01-06 22:59:17 +03:00
levlam
b06a08b106 Add separate key for test DC.
GitOrigin-RevId: 6417cbe9ed98ca7c280e0f5882f11d69610386c1
2019-01-02 02:43:37 +03:00
levlam
eaebfad034 Update copyright year.
GitOrigin-RevId: 359e2b43322222922c44c430d3814b0a4c778dc6
2019-01-01 01:02:34 +03:00
levlam
d9d45ef303 Support WORKER_BUSY_TOO_LONG_RETRY error.
GitOrigin-RevId: 44e4d36d91a44e21f679eaefac90c436a35079f2
2018-12-26 21:01:46 +03:00
levlam
ac3fa705a2 File streaming fixes.
GitOrigin-RevId: 86c6d1394a31d6bb108a12e14f4d981133ece235
2018-12-26 19:11:15 +03:00
levlam
3850a4da7f Move as from common.h to as.h.
GitOrigin-RevId: 3ecc4b4c4ff6c9b070d30cf017e22a8acce0af09
2018-12-20 00:57:56 +03:00
levlam
500d809f51 Improve connections logging.
GitOrigin-RevId: e0c11b91c016fce49f4ba4036f92a19a0dfc681b
2018-12-17 19:10:03 +03:00
levlam
9d3ab75c56 Fix some spelling.
GitOrigin-RevId: 351e7c32fee3fb9249d561434ba1515082e757b0
2018-12-14 01:48:36 +03:00
levlam
65c8dd4b04 Remove now unused need_wait_for_key.
GitOrigin-RevId: c3c84c4ceba80738eadb950b4cb28541eb30b79f
2018-12-11 23:43:52 +03:00
levlam
43b61eace0 Remove unused callback from SessionConnection.
GitOrigin-RevId: d59f2581e57acb8bad96197381d0e0698b932ed2
2018-12-11 23:34:46 +03:00
levlam
6445cf645b A lot of various fixes.
GitOrigin-RevId: 64963bfb55e5ffe8b099c1953143158b44a540c6
2018-12-11 23:18:58 +03:00
levlam
383119ebe6 Better actor names.
GitOrigin-RevId: 94d2c994f5a6ca26e3e35c84edb1df23d1efe75e
2018-11-18 15:33:06 +03:00
levlam
fdd7987f0a Fix preloading of just received in getDialogs dialogs.
GitOrigin-RevId: 0ff17a84046f76ede0ec4efda0707477b0ab9397
2018-11-18 00:24:19 +03:00
Arseny Smirnov
c6dd53a76e Session: set_online for nonmain connections
GitOrigin-RevId: 9bcfcdbaaf2440a307f221ab07aa650c449c3d26
2018-11-20 16:07:27 +04:00
Arseny Smirnov
fffe644aaa Connections creation debug
GitOrigin-RevId: 1f906a0c00464ff7bdfcfc41932b39733bab6780
2018-11-20 13:09:52 +04:00
Arseny Smirnov
7471e62740 Destroy authorization keys: fixes
GitOrigin-RevId: 9538efa2deadda91c18c1c97aa22281597a44d4b
2018-11-06 14:06:08 +03:00
levlam
b1d563719a Simplify should_open in SessionProxy.
GitOrigin-RevId: 5bfa92ed175468d5a247780b73d643735427637c
2018-11-04 13:53:57 +03:00
Arseny Smirnov
130456a3bb SessionProxy: rewrite session_open conditions
GitOrigin-RevId: 3a5757fdec567451671143937b5b942610f5ecdc
2018-11-03 09:33:22 +03:00
Arseny Smirnov
c610593e75 SessionProxy: bugfix
GitOrigin-RevId: f6874238d3aa79e980b3365dc19d9e9e0f0f3c22
2018-11-02 18:55:55 +03:00
levlam
5d5c55596e Minor improvements.
GitOrigin-RevId: 2f2099d91867ec302ff2d9426b6b088c8c625720
2018-11-01 20:08:20 +03:00
Arseny Smirnov
03604bb367 SessionProxy: bugfix
GitOrigin-RevId: b2cdc985d4465cdd19f85d024a5de9d8e882e8f0
2018-11-01 19:34:18 +03:00
Arseny Smirnov
27770ce060 Destroy mtproto keys on logout
GitOrigin-RevId: 8ac2bafd2d1897dc0942a33d8406ea8c2e5dfaa7
2017-12-29 23:34:39 +03:00
levlam
b886016254 Move Connections logging to INFO.
GitOrigin-RevId: a85aab69d18f4ef25d0853977a44d1a6cea695fd
2018-10-31 13:54:06 +03:00
levlam
51eec319b8 Fix some includes.
GitOrigin-RevId: 4c81e2fd0101f3c5bb23912681e7d02a60da5622
2018-10-28 20:30:47 +03:00
levlam
7d6f9c493b Add debug.
GitOrigin-RevId: aefa536bc203096a37709fa2ae5d478cfe65770e
2018-10-27 02:58:31 +03:00
levlam
28bfa4c4a6 Fix some MSVC Analyzer warnings.
GitOrigin-RevId: f62e8173ae9a5b78818f6575548ce22d4aa5c51d
2018-10-26 17:11:20 +03:00
levlam
0c64b2cf9c Fix some spelling.
GitOrigin-RevId: 99848b019fce855bf50380ce6ffc2865a007161d
2018-10-07 23:40:58 +03:00
levlam
d452a35d75 Fix type of "enabled_proxy_id" option.
GitOrigin-RevId: 2243cf9007766e91f94dc81e9a965e0a322612a6
2018-09-30 02:24:56 +03:00
levlam
b3bae546ec Various fixes.
GitOrigin-RevId: 52699dbd5280b63c6bb32da44ea5bfa3157a7922
2018-09-27 16:37:15 +03:00
levlam
f948956bf7 Use td::unique_ptr instead of std::unique_ptr whenever possible.
GitOrigin-RevId: 424beb72dc62efdefdbffb75f1036ba9417f84cb
2018-09-27 04:19:03 +03:00
levlam
b7c2248c72 Add td_api::testSetLogTagVerbosityLevel method.
GitOrigin-RevId: 763fcf9156671857c71967741b9ce8c67f4a7ea0
2018-09-26 02:59:29 +03:00
levlam
f08c0180b4 Const-correct tl::unique_ptr.
GitOrigin-RevId: b72a92a7169973c2d95e410cfbfed668a412e7e7
2018-09-21 20:52:22 +03:00
levlam
7c447551fb Add enabled_proxy_id option.
GitOrigin-RevId: 3153f71d13740429a9153205e96329e49e82b91f
2018-09-17 21:15:11 +03:00
levlam
559b20840a tg_cli: support for proper closing.
GitOrigin-RevId: 904b5a87c64bdd2d097a8a81f7c39bd31063097b
2018-09-15 15:24:25 +03:00
levlam
86ef95e0a8 Fix CE and some includes.
GitOrigin-RevId: e181d67a6ed36c9cbd444cf2282902b6a90881be
2018-09-13 06:08:49 +03:00
levlam
fd96a6722d Add get_ipv4 test.
GitOrigin-RevId: fe8d79634d3d4e5114cc8b03b0a38d988923c2ba
2018-09-11 21:49:39 +03:00
levlam
9971b52b81 Make subscribe a static method of Scheduler.
GitOrigin-RevId: e80024cfa63a37fb9b64f514ac3407d4e97c7302
2018-09-11 01:20:41 +03:00
Arseny Smirnov
8a28e4b461 Almost compiles
GitOrigin-RevId: aad536022caddba0446a761e7ab1f3b4ac64f53b
2018-08-14 10:42:40 +03:00
levlam
3fc180e001 Make Emscripten addresses public.
GitOrigin-RevId: 3e380bb6336587b737db60a684ec64b456d813cb
2018-09-04 18:51:28 +03:00
Arseny Smirnov
cab28f2cc8 Emscripten: wss support
GitOrigin-RevId: 06ce89660769533f531726b74573a1a422be20d0
2018-09-03 19:53:52 +03:00
levlam
f9cbe247cd Add Wdeprecated flag.
GitOrigin-RevId: 8aa900d7103efd0207f7f0fcb09e3bd2b7387564
2018-08-28 01:08:51 +03:00
levlam
ac1472c938 Fix verbosity level.
GitOrigin-RevId: 855ca89e37e48193d9b899ab309c0c12f8321d1b
2018-08-17 19:12:09 +03:00
levlam
c19ab1adbc Minor HTTP-proxy fixes.
GitOrigin-RevId: 03d1ca116707c358cd1a414046222236ee2d09b4
2018-08-17 19:03:07 +03:00
levlam
25826e253d Move VERBOSITY_NAME(connections) out of utils/logging.h.
GitOrigin-RevId: ec768560b9c87ff64d3d8b9a0c821f75abf3321a
2018-08-17 17:02:28 +03:00
levlam
4f8d855527 Support new Passport authorization form.
GitOrigin-RevId: 5830754700dcd19f4e0bcb08ccb5d72c22db76f0
2018-08-12 12:51:24 +03:00
levlam
d3bce1b23d Fix some includes.
GitOrigin-RevId: a3fecf68a676120e1bbd5936d98dee6cf05e8294
2018-08-10 21:54:17 +03:00
levlam
3d05d44be8 Update layer to 85.
GitOrigin-RevId: 0a32bd0287e3d09dd484c8dbe230f29b92d19771
2018-08-10 19:39:48 +03:00
levlam
00fabb8f97 Update layer to 84.
GitOrigin-RevId: a2057596f00201ee967e7d038e048b618f6e629d
2018-08-10 16:22:48 +03:00
levlam
f1295eba9b Add more debug logging.
GitOrigin-RevId: 047dbe63624ba0e810b245689c305e600e0a87f2
2018-08-06 19:04:21 +03:00
levlam
ff593d2ce8 Properly fix resolving proxy IP.
GitOrigin-RevId: cb385b8d0753da6f76dcdb237b2001143a23c94f
2018-08-06 18:28:56 +03:00
levlam
7c145a412b Custom language packs support.
GitOrigin-RevId: e7f76319dae5be3e20f81b41a0226e5f96f91ba1
2018-08-06 17:22:22 +03:00
levlam
2465356c2e Add some debug.
GitOrigin-RevId: 5d2387379188dce1fd52cc9561a349f87e4fc240
2018-08-04 23:08:36 +03:00
levlam
c9c2760173 Update layer to 83.
GitOrigin-RevId: 2220a0399ed081441fefc06069b06efa11b8447b
2018-08-04 09:55:49 +03:00
levlam
1ab13463bf Add td_api::editProxy.
GitOrigin-RevId: aae0664d65ce0731b1a9ede9615453cfe0822619
2018-07-27 18:10:45 +03:00
levlam
8de0bcd0a6 Add support for HTTP-only HTTP proxies.
GitOrigin-RevId: 7b8e3e7afb0f26c8e8fa97b0ffff5d1ad0267b5c
2018-07-27 03:54:25 +03:00
levlam
a547f42886 Add support for transparent HTTP proxies.
GitOrigin-RevId: 5ae836625a60d1f84b0ca8df2c41bf07e8ba59fd
2018-07-26 16:49:18 +03:00
levlam
2ca3c7eeed Add TransparentProxy abstract class.
GitOrigin-RevId: 77ced69b5d87c17a1bbc6d654bb0206a4e32e69d
2018-07-26 03:28:02 +03:00
levlam
f25bcd8d70 Remove unnecessary semicolons after namespace end.
GitOrigin-RevId: bf290001b072fd390fe2cada06722a3b90309cca
2018-07-18 04:30:29 +03:00
levlam
1aa94575e8 Minor fixes.
GitOrigin-RevId: 33b0f159e7003d7b9dce28033a7e90169a9421bc
2018-07-17 14:27:24 +03:00
levlam
e2a90b9edf Fix some string to Slice conversions.
GitOrigin-RevId: 79ddee1a90c633cc1b1df5c8e3d9917027bad0f3
2018-07-08 02:47:46 +03:00
levlam
90f0f006b4 Check that storer unsafe doesn't overflows.
GitOrigin-RevId: ffbdcbbba7d26688b59cda00318d02fc06e402dc
2018-07-06 23:33:11 +03:00
levlam
deecdb66bc Fix some td/actor/ includes.
GitOrigin-RevId: f9cf960b96018c4eb6169d2ec6cb5d3fbc16c0ec
2018-07-03 22:29:04 +03:00
levlam
9575ed5fbd Support language_pack in MTProto header.
GitOrigin-RevId: 75238791e517694bb3f430973e0d2556127f6bdd
2018-07-02 23:44:23 +03:00
levlam
9c8a6f9c65 Better MTProto header updates.
GitOrigin-RevId: f7df4c8259c286b699e27a7e33f2477515c6e798
2018-07-02 23:36:45 +03:00
levlam
ac1d7a9657 Add prefer_ipv6 option.
GitOrigin-RevId: b20e8c699e20c4fb6ec76cd53aeaeee509cd2115
2018-07-01 17:19:59 +03:00
levlam
9b0a138dd1 Add prefer_ipv6 parameter tp GetHostByNameActor.
GitOrigin-RevId: 727fc30d94657399f1e49efc208b6951a7677d2f
2018-07-01 04:12:20 +03:00
levlam
cfd1761a00 Use static IPs only for IPv4 Socks5 proxies.
GitOrigin-RevId: 797d7acdd16323bb61e15b67c13ada216abe31f1
2018-06-29 20:36:27 +03:00
levlam
139a858d80 Use CREATE_OK_REQUEST_PROMISE instead of simple RequestOnceActor.
GitOrigin-RevId: 7ba8db1c05ed06b9824e482ba6c12024c5a0106d
2018-06-29 00:06:17 +03:00
levlam
05bb41b250 Rename Socks5 actor for ping.
GitOrigin-RevId: 6e41fef4b451feffa6376e6cc61fec434270e78d
2018-06-28 16:53:40 +03:00
levlam
a3571b676e Allow to call deleteAccount before authorization. ConfirmPhone support.
GitOrigin-RevId: 36829ee37780ee82b1eb25cea594a673aa490dda
2018-06-27 21:26:52 +03:00
levlam
46535703e0 Fix some includes.
GitOrigin-RevId: 901d167d7197e4c0222656e9fc1f9fc0e216e44b
2018-06-26 02:43:11 +03:00
levlam
aa13a57a3c Update layer to 82. Contact.vcard support.
GitOrigin-RevId: 302d65351cfaeb6b4e82c594565ab1aef18b2a42
2018-06-26 00:10:53 +03:00
levlam
28ddc0525c Fix DcOptionsSet::reset.
GitOrigin-RevId: 6c0b066c380ac45e2264605d91c09ca5d51bc52b
2018-06-25 03:08:37 +03:00
levlam
b4d6662f71 Add some debug.
GitOrigin-RevId: 29b2efa626ed4a6a0c0eb2ac2cec2fb245e9e6b5
2018-06-25 01:51:15 +03:00
levlam
54d5b70abf Better INPUT_METHOD_INVALID logging.
GitOrigin-RevId: 81cff4d804281b64191faff56bc2678689c1c52d
2018-06-25 00:52:17 +03:00
levlam
8b5b73508a Ignore error code of MSG_WAIT_FAILED.
GitOrigin-RevId: 501b759e3f1c33ec881723c15f155b0b0b1cf606
2018-06-21 22:32:56 +03:00
levlam
8a6b550a86 New transport improvements.
GitOrigin-RevId: cc7b8aafe6a30009fd4d549ef969c373ce2b9d9a
2018-06-16 03:03:14 +03:00
Arseny Smirnov
c02d4505e4 0xdd transport
GitOrigin-RevId: 241c2fcea3ebaac20fc68531692cbd299a9de95a
2018-06-15 21:54:22 +03:00
levlam
3a8c0f131e Rename promoted chat to sponsored.
GitOrigin-RevId: e385126253199a46b55fba7d350e0c115a8c333e
2018-06-14 00:07:24 +03:00
Arseny Smirnov
d4cc127f17 Use CancellationToken for ConnectionCreator::request_connection promises
GitOrigin-RevId: 14157bd3677f4720d37ef70f64500522e3674173
2018-06-13 19:20:42 +03:00
Arseny Smirnov
3c1698dddf Session: cache salt for temp keys, better on_mtproto_header
GitOrigin-RevId: 02ba02aaf86e36402536d98d7bb80fd198c68378
2018-06-13 18:17:27 +03:00
levlam
ea8d5dbda7 Add debug for INPUT_METHOD_INVALID and BOT_METHOD_INVALID.
GitOrigin-RevId: dfc4e6c81f80504d2299a59f21cd79633fd98daf
2018-06-08 21:42:04 +03:00
levlam
dbe869e70c Better warning.
GitOrigin-RevId: dc260c72591e789431b23f9855232672d27daf5d
2018-06-05 03:23:48 +03:00
levlam
89c8bf819c Move some logging from INFO to DEBUG,
GitOrigin-RevId: f56140a9c03fcb0af8c8ecc381b3e111febf616f
2018-06-05 00:12:34 +03:00
levlam
9b946e7394 Do not use static IP for MTProto-proxy.
GitOrigin-RevId: e2be60b362b9254b700bbac0b97bf496fd0abcf1
2018-06-04 20:54:18 +03:00
levlam
ef2eb1c3cf Prefer IPv4 for connections through proxy.
GitOrigin-RevId: 5512d66191496bc964829f1a7bfe79d1d4474fef
2018-06-04 20:50:34 +03:00
levlam
2c5f5a8587 Improve PingConnection.
GitOrigin-RevId: be82fa18e2f9a154d3d276b5618d0ca72b9e4282
2018-06-04 19:58:54 +03:00
levlam
e5385cbd0b Better ping time calculation.
GitOrigin-RevId: d9cf250dae657ed498d932b2e335efbddb374c43
2018-06-04 19:35:29 +03:00
levlam
8253460dbb Better ping of main DC.
GitOrigin-RevId: f3231b9b8f558cfceef6d2b952b4f1f7051cb396
2018-06-04 18:55:38 +03:00
levlam
d774b6612f ConnectionCreator::get_transport_type.
GitOrigin-RevId: e73fa95b64f5cd36640ab574b3d0b30823ece001
2018-06-04 01:17:59 +03:00
levlam
13f17714fc DcOptionsSet::find_all_connections.
GitOrigin-RevId: ed921667bf1cbc57ad4a442e70a3fd307d839319
2018-06-03 02:35:32 +03:00
levlam
066e6a90e3 Allow 0 in pingProxy.
GitOrigin-RevId: c03522ac55da93543bf6bfefdfae28b280458233
2018-06-02 15:20:35 +03:00
levlam
56a2cac6ba Update layer to 81.
GitOrigin-RevId: c6579e02edaff656ab17b3d94695cab8c7960b2d
2018-06-01 23:15:13 +03:00
levlam
4a6b1fa4d3 Use 2 connections for file download.
GitOrigin-RevId: 04bc4b69b0e5a9608a49ec03e8b204ccc49bf349
2018-06-01 22:16:35 +03:00
Arseny Smirnov
56d2beedc4 Fix use_pfs for different Sessions
GitOrigin-RevId: 99fab277c0909da33cfc8c4e1ee827186dd5ac32
2018-05-31 20:40:26 +03:00
Arseny Smirnov
bd9c88794e Use pfs for media download
GitOrigin-RevId: afaa0e04f02b2b3dfb8822dacd56c0473b019527
2018-05-31 16:56:06 +03:00
Arseny Smirnov
2ede0fc336 GenAuthKeyActor: bugfix
GitOrigin-RevId: 024409dfc36edcb18a9e166b231a290295a7a978
2018-05-31 10:04:05 +03:00
Arseny Smirnov
c783a946c3 Session: fix warning
GitOrigin-RevId: 6183ab2342222670680057843fc3d908b7995ce8
2018-05-30 19:38:17 +03:00
levlam
13fe5c0adc Better logging.
GitOrigin-RevId: eae79256699ffeab8c8290b2b6cbb188e3294d77
2018-05-24 19:54:57 +03:00
levlam
0e48dd8a81 New ConfigRecoverer scheme.
GitOrigin-RevId: 1101ddc56b0836387faf089ca52fe7376db9f88f
2018-05-24 18:09:27 +03:00
levlam
db6777c7f2 Use p_q_inner_data_dc.
GitOrigin-RevId: f1e57b83d850ac4233bf9508b6585aaf0efe1423
2018-05-23 19:49:05 +03:00
levlam
d763c755e1 Remove ConnectingToProxy state for MTProto-proxy.
GitOrigin-RevId: 21950ac6b0fc00f2b599ae158bb1b4414788d5c6
2018-05-23 18:51:58 +03:00
levlam
5eea3d9c37 Update InitConnection request.
GitOrigin-RevId: b9785bf56bd4cb9c44c5a91f3cb07d2352bc6ca2
2018-05-22 14:09:58 +03:00
levlam
6f7d4b08bf Update layer to 80.
GitOrigin-RevId: fe59fee694886bd63e412fa8de33dd561302218c
2018-05-21 07:18:39 +03:00
levlam
8fb6edab2f Ping proxy fixes.
GitOrigin-RevId: cf6e8a2585fdfe7a7491109b8facf0dcad379d2c
2018-05-19 18:05:38 +03:00
Arseny Smirnov
3675e38605 Ping proxy
GitOrigin-RevId: ff4dfa54bee356a06b1ec076711fb28b894221cb
2018-05-18 23:43:38 +03:00
levlam
490c4e86a2 Minor fixes.
GitOrigin-RevId: f972e24191cc31262bf655774bc6193277b8842b
2018-05-18 15:57:40 +03:00
levlam
d9a89abd23 Fix raw_dc_id for test DC.
GitOrigin-RevId: 2fd4d78700d245b91a6b390df26568d910cbae37
2018-05-17 22:09:57 +03:00
levlam
cb6c46071e td_api::getProxyLink.
GitOrigin-RevId: 0d876446bbbb22467c452b088f4df24e7e1624a2
2018-05-17 21:08:51 +03:00
levlam
bf43893503 Fix false clang warning.
GitOrigin-RevId: 02f377c960d360f83452392d5cd76c3f6d4b02a1
2018-05-16 23:12:33 +03:00
levlam
67c00e02ea Complete pending preauthentication requests.
GitOrigin-RevId: 8e9b2ec7f8ba8e298f8d95ad7135f7607d440c2f
2018-05-16 22:35:27 +03:00
levlam
134849c906 Fix migrating to many proxies.
GitOrigin-RevId: b503ac549ff395143d521b0511fbf32f037df271
2018-05-15 19:44:24 +03:00
levlam
582d6e66a0 Remove logging.
GitOrigin-RevId: da24a4d5aede66cb14193cad28216f99e7f507dd
2018-05-15 15:21:53 +03:00
levlam
aeeef4ba74 Implement save_proxy_last_used_date.
GitOrigin-RevId: fa93bf71cdab89054c0576ca4256dbf9dd0bf0fb
2018-05-15 15:21:09 +03:00
levlam
105e0e3b84 Fix previous commit.
GitOrigin-RevId: 16029bdbf50092ff2e440869d5352b72e5628476
2018-05-14 22:11:48 +03:00
levlam
7de9a0c15d New Proxy API.
GitOrigin-RevId: 2f96b8d1732c25e10a7568c6cf2dbbe26a150e4a
2018-05-14 22:00:38 +03:00
levlam
1492467ab8 Notify sessions about mtproto header updates.
GitOrigin-RevId: 35ee6055c65c7656726a20672fa600823a13ac5f
2018-05-10 21:02:24 +03:00
levlam
c65b998cd6 All updatePromotedChat.
GitOrigin-RevId: 4a3c6283026ba15836cb7fa011c4b3ad21a64baa
2018-05-08 23:02:15 +03:00
levlam
5c1612e9eb Fix mtproto proxy secret.
GitOrigin-RevId: e561c27016d6f08f9923608ba7fc40ee419c6053
2018-05-08 18:08:26 +03:00
levlam
98289b9963 Add proxyMtproto to td_api.
GitOrigin-RevId: c872c063bc6e5d94c80ac1daa6b916f8ce5f4c23
2018-05-08 17:48:30 +03:00
levlam
63695490e0 Update layer 78.
GitOrigin-RevId: dfef982111d092425e56a400e0cc9f4c9cfcb2c9
2018-05-08 15:50:33 +03:00
levlam
de0614891d Fix g++ CE and warning.
GitOrigin-RevId: 14b43cc16c2eac069bb19b6fe5a6adb964068970
2018-05-03 12:00:35 +03:00
Arseny Smirnov
d28a98ac38 bugfix
GitOrigin-RevId: acc271923c40176671e846d420c8883304bc9126
2018-04-30 20:38:30 +03:00
Arseny Smirnov
efc5cbb8ad Mtproto secret support
GitOrigin-RevId: 3efeb3f309b76074d6581d68e9a9b20df79e82ae
2018-04-30 20:01:18 +03:00
levlam
62d668674b Remove fileTypeSecureEncrypted.
GitOrigin-RevId: 33adf461aeea26cf5c4cbb1d28ade3a258b61126
2018-04-27 11:00:56 +03:00
levlam
febdf70626 DcOption.secret initial support.
GitOrigin-RevId: fa067f8467db8c07906925bd6a794c2cf00ddb7d
2018-04-24 21:17:21 +03:00
levlam
1a0c874a67 Update layer to 79. Some fixes.
GitOrigin-RevId: 9356eee58e48d7c191a1bccb7e25d6875a07fb51
2018-04-24 19:21:47 +03:00
levlam
f758d592dd Better iterators increment.
GitOrigin-RevId: 5da2e57210ce62f78ab938005a4683d2c1e26547
2018-04-23 01:14:49 +03:00
levlam
2c4678a1e3 Send NetQuery to callback when closing.
GitOrigin-RevId: 6e564fd9401ae4352471d2938058d02e54c73f05
2018-04-19 20:21:26 +03:00
levlam
a09e94370b Move NetActorOnce to NetActor.h.
GitOrigin-RevId: e439137323dda416b07e091c4218eba0a4c73961
2018-04-19 19:00:54 +03:00
levlam
d80148afae Explicitly specify enum underlying type.
GitOrigin-RevId: 65a7cc4df6b07fe095e898c06ad53deb5e188df3
2018-04-19 16:08:30 +03:00
levlam
184af85bfc Update layer 78: venue_type, email code length.
GitOrigin-RevId: c10dc49dd0ecd467a78b17081239305035f6e642
2018-04-09 21:06:37 +03:00
Arseny Smirnov
8a1ca6355b Email address verification
GitOrigin-RevId: cfa1dc92428377a06a0a043321ae6bb3e94c5309
2018-04-09 19:04:21 +03:00
Arseny Smirnov
fb79d6f95a Layer 78. Initial Telegram Passport support.
GitOrigin-RevId: 197994bcf62a76cd963f32a8dd7f5951d7b6588b
2018-03-27 16:11:15 +03:00
levlam
c10ac96cc9 Various fixes.
GitOrigin-RevId: 3880e2fc5b8704f163817699ec1043f2f7a39b83
2018-03-14 17:43:00 +03:00
levlam
9a4617fee3 Add IPv6 DC addresses.
GitOrigin-RevId: 03f79d00d679869d42c5557586e0af2a72b62a23
2018-03-14 15:27:55 +03:00
Arseny Smirnov
600bbcf3ca Protect G()->td_db() usage in AuthDataShared with guard
GitOrigin-RevId: d9e8a79c9db9b061de81f98fcd66f085d4efcaaa
2018-03-13 16:40:02 +03:00
levlam
1ac97a6ba7 Various fixes.
GitOrigin-RevId: 80fa34e64e6824a0f96c38d2e8b0a32455267ea8
2018-02-28 13:25:07 +03:00
Arseny Smirnov
751029d45d DcOptionsSet: debug
GitOrigin-RevId: c6836c1c0c5a9755d47809931a2505346ab7e885
2018-02-27 12:38:49 +03:00
levlam
d1f1a14a37 Update layer to 76: add messageWebsiteConnected.
GitOrigin-RevId: 8cb5128a7d7eac2afe0622fc901392bf318fa460
2018-02-22 03:36:40 +03:00
levlam
f0e5accbb4 Fix scheduler_id for GetHostByNameActor.
GitOrigin-RevId: fca68b68bfddb750e191d9d2479418149b5cf250
2018-02-20 20:16:17 +03:00
levlam
2576b10082 Fix failed to send message message_id.
GitOrigin-RevId: 9fba0bd1fb7ce8d396c0012c9537155dc20f1054
2018-02-20 03:14:47 +03:00
levlam
d3c980e5d3 Do nothing when the same proxy is set.
GitOrigin-RevId: 69611358667c598a1ce009944cbe21bbdad4b3ad
2018-02-20 00:44:52 +03:00
levlam
c407c507ad Fix some std:: namespace function usages.
GitOrigin-RevId: f867d613f9f86fa25a2a7ead29c0a7dadfb8402d
2018-02-14 00:41:45 +03:00
levlam
cab1038f62 Fix include.
GitOrigin-RevId: 942ebe1d01608f33b30fccc5e52a88ed698a49d0
2018-02-12 13:54:27 +03:00
levlam
a6ab35e616 Replace std::max/min with td::max/min.
GitOrigin-RevId: 56fb21194e995cbb37b3ebb5caed689c10320b8d
2018-02-12 13:37:54 +03:00
levlam
24c873884f AuthData.cpp.
GitOrigin-RevId: 8ca44a4d07591d785b571e8847acdc6ee3a45638
2018-02-12 12:28:14 +03:00
levlam
99c3946d41 More connection_recoverer logging.
GitOrigin-RevId: c86cdef27ec3beacfe6883a100d95a36019a902b
2018-02-07 23:48:40 +03:00
levlam
da4714b3ca Unify include order.
GitOrigin-RevId: 981c4788511b9b286e954b2f85a7263b8baf8566
2018-02-03 15:58:18 +03:00
levlam
d7ecc96113 Update layer to 75. Support entities in captions.
GitOrigin-RevId: a633d5d57c52794da0fc1b6de04f4ff1a4ed00fd
2018-01-30 20:06:54 +03:00
levlam
c5fb5f1336 Update layer to #74.
GitOrigin-RevId: 98c777a7dba65e49f2206ba016283b3737e80d89
2018-01-10 00:04:18 +03:00
levlam
5cbda834bd Update copyright year.
GitOrigin-RevId: 1369d3af1195221f6ddb9462d5f8b74fb5fef20f
2018-01-02 16:45:09 +03:00
Arseny Smirnov
71d03f39c3 Project import generated by Copybara.
GitOrigin-RevId: 318483224ad6164d9966f731d60cde37039bb2d4
2017-12-31 23:08:40 +03:00