Commit Graph

51 Commits

Author SHA1 Message Date
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
levlam
a6a4eb6616 Don't include SliceBuilder.h in logging.h. 2021-05-17 15:21:11 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
3f33d15879 Always adjust part size to keep low number of parts in downloaded files. 2020-11-17 02:59:58 +03:00
levlam
52a47b5f70 Add small margin for the maximum number of file parts on download. 2020-11-17 01:19:27 +03:00
levlam
8a607933a7 Rename "files" log tag to "file_loader".
GitOrigin-RevId: 24fca707a99eeb32adabcca46131123d584f2c1d
2020-10-05 22:08:24 +03:00
levlam
d2d0cb5cc0 Move log tags definitions out of logging.cpp.
GitOrigin-RevId: 0e74b94ec194f8ee678bb77a04d35df46702b330
2020-10-05 18:07:23 +03:00
levlam
90ee4bd63c Minor fixes.
GitOrigin-RevId: ef4e2cfe4f198caec26daf04423eb26afedde5bb
2020-09-24 19:15:42 +03:00
levlam
093ba9c9d4 Change offset and limit simultaneously.
GitOrigin-RevId: eb07ec70a9048c4b5a5a5e0f1e17431b8528e6de
2020-08-25 18:58:37 +03:00
levlam
3cc97684ec Fix tdweb build.
GitOrigin-RevId: 3609f3fa52030a242d0587d2ca6f584417af247b
2020-08-25 16:32:22 +03:00
Arseny Smirnov
51ff6105cb FileLoader: fix queries cancelling
GitOrigin-RevId: 8350a262e0c51563e987e66e77ba1922bb2f5a4d
2020-08-21 16:32:31 +03:00
Arseny Smirnov
e3fa28d457 PartsManager: fix wrong FILE_DOWLOAD_LIMIT error
GitOrigin-RevId: 89a22ae3a494c66dcb0a19abf0cd243e3ffc1875
2020-08-21 15:54:18 +03:00
Arseny Smirnov
4f41cfcbff FileLoader: smarter cancelling of queries when offset changes
GitOrigin-RevId: 2131d416eda29d93d85e8d655964c0a92cdfaf57
2020-08-21 15:53:11 +03:00
levlam
2ac8c164ff Increase maximum file size.
GitOrigin-RevId: d4da965e7ecea03bc3eb356c41a81a715a06ace0
2020-07-03 17:31:06 +03:00
levlam
b8848a2ab4 Simplify NetQuery creation.
GitOrigin-RevId: a01e72f8e196b405dd28dfd75d16cadc7127ec4a
2020-03-16 00:17:11 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
0b6c1d226f Update clag-format to the latest (190926/r372920) version.
GitOrigin-RevId: 7861ae8ad28eb1f6a06ff3c6f56eff3f67b1d24c
2019-09-28 05:14:21 +03:00
Arseny Smirnov
24f31ad888 FileManager: download big files with unknown size
GitOrigin-RevId: 3f4246f2d61127015138a32f2e93c8f932a81c50
2019-08-19 12:31:25 +03:00
Arseny Smirnov
1d570ca85c PartsManager: handle some errors
GitOrigin-RevId: c0f65cce76ece49ec99557503d79da66995e44c8
2019-07-31 18:04:38 +03:00
Arseny Smirnov
4d33451758 PartsManager: restart upload when uploaded size is more than we have locally
GitOrigin-RevId: e307dbd150e97b04c73a9d40556dd26d9e6e4a00
2019-07-31 16:48:59 +03:00
Arseny Smirnov
655add2ec0 PartsManager: some fixes
GitOrigin-RevId: fedd9458f18179cdabef579cdc251f8006a3f61e
2019-07-30 21:27:39 +03:00
levlam
16a209cef0 Use some unused Status responses.
GitOrigin-RevId: b49d15a22918169b5e1a212e5858dc2e9bd2033e
2019-04-28 15:00:06 +03:00
levlam
8f771b8666 Fix ERROR logging.
GitOrigin-RevId: 39570dcd2c009b64e08f3c9193bddc2d8dfe656e
2019-03-25 02:29:33 +03:00
levlam
b5407cd6bc Minor fixes.
GitOrigin-RevId: 39fb006dd5d935f6dd0b400114d71391463450eb
2019-03-17 23:43:58 +03:00
levlam
399d13040d Better streaming gffset debug.
GitOrigin-RevId: bb0f5beea36151840685c8c0e33e6ff553e0d9e5
2019-03-16 23:13:18 +03:00
Arseny Smirnov
347a22858c Files: fixes
GitOrigin-RevId: 5469a6c26fbb187fd52ddaf1c8bacfae4ddddbe9
2019-03-10 12:31:24 +11:00
Arseny Smirnov
986ce38998 PartsManager: recalc streaming_ready_size_ when streaming_offset changes
GitOrigin-RevId: e2b82154cbf9ef1f1bf4ed322f518eb0f4ead0cc
2019-03-05 10:48:50 +03:00
levlam
1ee2b63230 Fix streaming_ready_size_ calculation.
GitOrigin-RevId: 62ad330749e88188697de7f23b525ac9e426d780
2019-03-04 00:37:25 +03:00
Arseny Smirnov
604547adc8 FileManager: fixes
GitOrigin-RevId: fd6071262f55fb803f67359b9f7e5075fcec862e
2019-02-27 19:00:10 +03:00
Arseny Smirnov
ffd7b166d9 PartsManager: fixes
GitOrigin-RevId: 7e4c663f53aa8b146cf9119ddf8e9fa680bb738b
2019-02-26 17:14:07 +03:00
levlam
58f63d36d6 Fix includes.
GitOrigin-RevId: d633dc842591cd28a03f9fba6974a171926ed229
2019-02-22 23:15:43 +03:00
Arseny Smirnov
206fbc0686 downloadFile: add limit:int32
GitOrigin-RevId: 395d29e8383db5c54a3f85a555c4e9648546ef47
2019-02-18 22:08:05 +03:00
Arseny Smirnov
20bfcaa979 Use LOG_CHECK where it is necessary
GitOrigin-RevId: a8bd17cc2ee6e43dcea52bb25aef9ee1f91c7ec4
2019-02-12 19:17:20 +03:00
levlam
eaebfad034 Update copyright year.
GitOrigin-RevId: 359e2b43322222922c44c430d3814b0a4c778dc6
2019-01-01 01:02:34 +03:00
Arseny Smirnov
5a741ce08d PartsManager bugfix: do not set bits in bitmask for empty parts
GitOrigin-RevId: 5fec69b1e1aed975edb7d9901206262abc7151d3
2018-12-28 16:16:14 +03:00
Arseny Smirnov
86bf606666 Bitmask::encode bugfix
GitOrigin-RevId: 14b62438b50a9806f27d5e5c028a092cc517e6ac
2018-12-27 21:06:30 +03:00
Arseny Smirnov
4cee00d938 PartsManager: truncate unchecked part of a bitmask
GitOrigin-RevId: 733c1f7a2a63a25103e10392780123e1e2289425
2018-12-27 12:12:24 +03:00
Arseny Smirnov
f01329e8ed PartsManager: restart upload when known_prefix_flag changes from outside
GitOrigin-RevId: a16192d1d73eea1337c590920ae425b7cd71f0e1
2018-12-27 09:45:19 +03:00
Arseny Smirnov
dddb598b58 PartsManager: bugfixes
GitOrigin-RevId: d98139df4068f14bbecc5cc6f227d6f085c653b2
2018-12-27 00:41:52 +03:00
levlam
ac3fa705a2 File streaming fixes.
GitOrigin-RevId: 86c6d1394a31d6bb108a12e14f4d981133ece235
2018-12-26 19:11:15 +03:00
Arseny Smirnov
3b238f6fba Files streaming
GitOrigin-RevId: 78df1cd44c95380cd4af46f4db809ce28876db1f
2018-11-11 15:38:04 +04:00
levlam
b4d6662f71 Add some debug.
GitOrigin-RevId: 29b2efa626ed4a6a0c0eb2ac2cec2fb245e9e6b5
2018-06-25 01:51:15 +03:00
levlam
68dd5cece9 Fix debug bad parts.
GitOrigin-RevId: 867baaf16092b260f2695b94745fb9fe765b548a
2018-05-20 00:56:40 +03:00
levlam
4e7b07508f Various PassportData fixes.
GitOrigin-RevId: 7c8ce3d564c37dcc75715b5dac7886749e0ed9d3
2018-04-26 23:41:34 +03:00
levlam
a6ab35e616 Replace std::max/min with td::max/min.
GitOrigin-RevId: 56fb21194e995cbb37b3ebb5caed689c10320b8d
2018-02-12 13:37:54 +03:00
Arseny Smirnov
74bdbedb5a FileManager: multiple fixes
GitOrigin-RevId: 2b3da1b87529f8a49e9e4da3e0cd490ae2790926
2018-01-30 15:33:02 +03:00
Arseny Smirnov
c329826c5d FileUpload: restart automatically if part_size is too small
GitOrigin-RevId: bbfe3f0fca2f888f6bd4d2909935903d7c4e3b33
2018-01-29 20:46:06 +03:00
Arseny Smirnov
674a99324b PartsManager: bugfix
GitOrigin-RevId: fd8235abdef01c1a384a44b3040ba76c9f4e0c08
2018-01-29 17:41:40 +03:00
levlam
816b02e8c6 Add some debug output.
GitOrigin-RevId: 87f724672d2e21c4c0640b1a4e610acf51260d2a
2018-01-28 23:38:55 +03:00
levlam
5cbda834bd Update copyright year.
GitOrigin-RevId: 1369d3af1195221f6ddb9462d5f8b74fb5fef20f
2018-01-02 16:45:09 +03:00