These are chat archives for anacrolix/torrent

30th
Jan 2018
Denis
@elgatito
Jan 30 2018 07:57
btw, android is so "different", that libtorrent has options for tuning the storage: https://github.com/scakemyer/quasar/blob/master/bittorrent/service.go#L318
not 100% of devices, but mostly people had very slow writes without it and sometimes reported that libtorrent was failing with IO errors, looked like OS have closed the handle after excessive usage
Denis
@elgatito
Jan 30 2018 08:24
is there any reason for listening on multiple ports at once?
20:04:17.065 T:10764  NOTICE: [plugin.video.quasar] NOTI  libtorrent   в–¶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] [::]:6881
20:04:17.067 T:10764  NOTICE: [plugin.video.quasar] NOTI  libtorrent   в–¶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] 0.0.0.0:6881
20:04:17.068 T:10764  NOTICE: [plugin.video.quasar] NOTI  libtorrent   в–¶ logAlerts        listen_succeeded_alert: successfully listening on [UDP] 0.0.0.0:6881
20:04:17.069 T:10764  NOTICE: [plugin.video.quasar] NOTI  libtorrent   в–¶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] [::]:6884
20:04:17.076 T:10764  NOTICE: [plugin.video.quasar] NOTI  libtorrent   в–¶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] 0.0.0.0:6884
20:04:17.078 T:10764  NOTICE: [plugin.video.quasar] NOTI  libtorrent   в–¶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] [::]:6883
20:04:17.080 T:10764  NOTICE: [plugin.video.quasar] NOTI  libtorrent   в–¶ logAlerts        listen_succeeded_alert: successfully listening on [TCP] 0.0.0.0:6883
20:04:17.081 T:10764  NOTICE: [plugin.video.quasar] NOTI  libtorrent   в–¶ logAlerts        listen_succeeded_alert: successfully listening on [UDP] 0.0.0.0:6883
splitting connections over listeners?
Matt Joiner
@anacrolix
Jan 30 2018 10:42
One is probably an RPC
6884
Denis
@elgatito
Jan 30 2018 10:55
communicating with differnet parts through diff ports, makes sense
        TORRENT_ASSERT(m_magic == 0x1337);
        TORRENT_ASSERT(l.owns_lock());
        TORRENT_UNUSED(l);
C++ :D
Denis
@elgatito
Jan 30 2018 11:03
made a quick look at libtorrent buffered IO writer and around that - https://github.com/arvidn/libtorrent/blob/master/src/disk_io_thread.cpp
quite a big piece of work
the biggest question what to do with readers and verification of pieces while we keep data in buffer
Matt Joiner
@anacrolix
Jan 30 2018 11:29
since all data is accessed through storage, i'ts quite easy to put a caching layer in the middle. the hard bit is making it actually helpful, and not just extra complexity
for example coalescing chunks
deciding when to write them, etc.
Denis
@elgatito
Jan 30 2018 11:34
yup, it would be easy if there is no reads or they are done after all data is written :)