Created attachment 171550 [details] as summary === Increase max piece size === Optimal piece count is ~1500. mktorrent allows up to 2^28 currently, thus providing ability to create torrents for 375 GiB of data with optimal piece count. Increased maximum piece size to 2^30 thus allowing torrents for 1.5 TiB of data (again, with optimal piece count). === Make tracker optional === mktorrent currently can't create torrents without announce URL. Since DHT works perfectly well nowadays, this limitation doesn't make any sense. Changed to require tracker only when creating private torrent (i.e. DHT, PEX, etc disabled).
Created attachment 171552 [details] make output look better in verbose mode
Created attachment 171610 [details] example torrent of 1GiB-sized pieces
Created attachment 171611 [details] example torrent of 512MiB-sized pieces
Requesting forced commit & maintainer reset.
A commit references this bug: Author: danfe Date: Sun Mar 12 13:35:30 UTC 2017 New revision: 435987 URL: https://svnweb.freebsd.org/changeset/ports/435987 Log: net-p2p/mktorrent: increase max piece size and make tracker optional Optimal piece count is ~1500. mktorrent allows up to 2^28 currently, thus providing ability to create torrents for 375 GiB of data with optimal piece count. Increase maximum piece size to 2^30 thus allowing torrents for 1.5 TiB of data (again, with optimal piece count). mktorrent currently can't create torrents without announce URL. Since DHT works perfectly well nowadays, this limitation doesn't make much sense. Change to require tracker only when creating private torrent (i.e. DHT, PEX, etc. disabled). While here: define LICENSE (GPLv2+), make options actually work, remove redundant THREADS_DESC, and clean up Makefile a bit. PR: 210374 Submitted by: Anton Sayetsky Approved by: maintainer timeout Changes: head/net-p2p/mktorrent/Makefile head/net-p2p/mktorrent/files/ head/net-p2p/mktorrent/files/patch-init.c head/net-p2p/mktorrent/files/patch-output.c
Patches added (along with other necessary port fixes) in ports r435987, thank you. Have you considered submitting them upstream (https://github.com/Rudde/mktorrent)? I can see that author had already made announce URL optional (https://github.com/Rudde/mktorrent/issues/12) but max piece size issue could still be relevant.
(In reply to Alexey Dokuchaev from comment #6) Unfortunately, GitHub requires registration to open issues (correct me if I'm wrong), so answer is no because I don't want to register yet.