aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/tp.rs
Commit message (Collapse)AuthorAgeFilesLines
* Show chunk progress during large paste uploadsHEADmainmurilo ijanc2026-03-271-10/+4
|
* Add chunked paste support for content up to 1.44 MBmurilo ijanc2026-03-271-41/+282
| | | | | | | | | | | | | | | Large pastes are split into 8 KiB chunks on the client side, each stored separately in a dedicated chunks/ directory. A version-2 manifest paste lists the chunk hashes and is announced to the DHT; chunks replicate via periodic republish with per-put throttling to avoid rate-limit bans. - New PUTC/PUTM protocol commands for chunks and manifests - Client-side chunking avoids O(n^2) base58 on large content - HTTP handler reassembles chunks directly from store - DHT sync routes incoming chunks to chunks/ directory - Republish interval reduced to 5 min with 200ms throttle - tp.1 updated with new 1.44 MB limit
* Add automatic re-join and -v flag for verbose loggingmurilo ijanc2026-03-251-1/+15
| | | | | | | | | When the routing table drops to zero peers, the daemon now re-joins bootstrap nodes every 60s, unbanning their addresses first so replies are not silently discarded. Both tp and tpd accept -v for debug-level output without needing RUST_LOG environment variable.
* Limit stdin read in tp, bound protocol drain, document Arc leakmurilo ijanc2026-03-251-7/+20
| | | | | | | | - tp: limit stdin to 64 KiB + 1 byte to reject oversized pastes early without unbounded memory allocation - daemon: bound the oversized-line drain to MAX_LINE_SIZE so a client without newlines cannot block beyond the read timeout - tpd: document intentional Arc::into_raw leak in signal handler
* Add pledge(2) and unveil(2) sandboxing for tp and tpdmurilo ijanc2026-03-251-0/+7
| | | | | | | tpd: unveil data dir (rwc), resolv.conf (r) when DNS needed, then pledge stdio rpath wpath cpath fattr inet unix dns. tp: unveil socket path (rw), then pledge stdio unix rpath.
* Initial commit: tesseras-paste decentralized pastebinmurilo ijanc2026-03-251-0/+206
DHT-backed encrypted pastebin with two binaries (tp/tpd), XChaCha20-Poly1305 encryption, content-addressed storage, and Unix socket + HTTP interfaces.