libtorrent
libtorrent copied to clipboard
libTorrent BitTorrent library
This commit simplifies the torrent initialization logic by using a right shift instead if-else statements to calculate max_size and max_open_files.
Running libtorrent 0.13.8 with rtorrent 0.9.8 - noticed that rTorrent on server was unable to connect to a torrent client running on my local computer and decided to investigate the...
- Call ftruncate() after fallocate() to ensure the file gets shrunk if needed. - Open the files queued for resizing in writable mode to allow fixing the files with a...
Backports a couple memory leak fixes from [jesec/libtorrent](https://github.com/jesec/libtorrent) .
Backports is_initialized() API from [jesec/libtorrent](https://github.com/jesec/libtorrent) . This is required to fix a memory leak with SCGI on rTorrent. A pull request will be created later on rTorrent linking this. It...
Support the 'new' (originally proposed in 2008) BitTorrent v2 as described in BEP 52 [1]. libtorrent just gained support for it, see [2]. [1] https://www.bittorrent.org/beps/bep_0052.html [2] https://blog.libtorrent.org/2020/09/bittorrent-v2/
Without LTO everything is fine. ``` + cd libtorrent-0.13.8 + /usr/bin/make -O -j48 V=1 VERBOSE=1 check Making check in src Making check in torrent Making check in data make[3]: Nothing...
rtorrent reliably crashes when attempting to recheck open torrents that contain 0-byte files that don't exist on disk. I think this is a libtorrent issue, if not, apologies. Reproduction steps:...
Simplify things! =) Close rakshasa/rtorrent#894
After many crashes, I found another issue where gdb was mentioned and did the same to provide a better stack trace: ````Thread 1 "rtorrent main" received signal SIGSEGV, Segmentation fault....