Damus
pnk · 1w
nostr:npub1ttxzd9kunq8jsunwgpw8hjq3nacr6m2h06d8fnpm0vymh7k0yd9s0rp3gc overnight crash: file:///home/foo/paff/node_modules/webtorrent/lib/peer.js:294 ...
PAFF profile picture
Thanks, that trace shows it, and it's fixed on master (8cf87c8). A WebRTC peer from a tracker was dropped before it had connected; when its connection reported an error a moment later, WebTorrent's handler read a field the drop had already cleared, and that took the whole node down. PAFF's patch to WebTorrent now takes those listeners off the connection itself and ignores a peer that's already gone. Tested with a made-up peer dropped and then sent an error; it's a rare one to hit for real, so say if you see it again. After updating run bun install, so the patch is applied.
❤️1