These are chat archives for anacrolix/torrent

12th
Jun 2018
herrwusel
@herrwusel
Jun 12 2018 04:36
will do!
Matt Joiner
@anacrolix
Jun 12 2018 07:26
@elgatito I'm not familiar with the contents of the kodi log, is there something I can grep for to see stuff relevant to torrent?
Denis
@elgatito
Jun 12 2018 07:28
@anacrolix I don't see anything strange there... usual downloading, but nothing downloads =\
Matt Joiner
@anacrolix
Jun 12 2018 07:30
yeah i saw in that video that was very helpful
Denis
@elgatito
Jun 12 2018 07:32
for me it should be something with the network. there are peers, there is bandwidth, there is no disk usage, just make a connection and go, but ...
and CPU usage is also fine
Matt Joiner
@anacrolix
Jun 12 2018 07:32
yes, the cpu usage is unaffected
was it android?
Denis
@elgatito
Jun 12 2018 07:33
Starting Kodi (17.6 Git:20171119-ced5097). Platform: Android ARM 64-bit
Matt Joiner
@anacrolix
Jun 12 2018 07:33
ok
are all the people with problems like this on android?
i have another guy using torrent on android and there's issues calling through to native stuff, he had problems for ages
Denis
@elgatito
Jun 12 2018 07:34
looks like only on android it happens
Matt Joiner
@anacrolix
Jun 12 2018 07:35
some kind of rate or connection limiting
Denis
@elgatito
Jun 12 2018 07:35
we use pretty old android ndk
Matt Joiner
@anacrolix
Jun 12 2018 07:35
does it work for anyone on android at all?
Denis
@elgatito
Jun 12 2018 07:35
sure, it's only a numbered situation, all other people are fine
having problems with disk writes usually, but not with downloading into memory
Denis
@elgatito
Jun 12 2018 08:21
@anacrolix I have added one url endpoint to return /debug/perf/, /debug/lockTimes, /debug/vars and /info. Any more information can be included there ?
Matt Joiner
@anacrolix
Jun 12 2018 08:34
i think it's /debug/perf
i just noticed you set the PeerID in the torrent.Config
how do you come up with the value you use?
Denis
@elgatito
Jun 12 2018 08:42
some trackers check peerid/useragent, so we pretend peer looks like utorrent and other clients, when we need that
Matt Joiner
@anacrolix
Jun 12 2018 08:42
ok, do you think they prefer that?
Denis
@elgatito
Jun 12 2018 08:43
            userAgent = "uTorrent/2.2.1"
            peerID = "-UT2210-"
Matt Joiner
@anacrolix
Jun 12 2018 08:43
how do you persist between sessions?
Denis
@elgatito
Jun 12 2018 08:43
i was testing with filelist, they do check useragent
persist what?
Matt Joiner
@anacrolix
Jun 12 2018 08:43
:( why would they do that
so when the user restarts kodi or whatever
Denis
@elgatito
Jun 12 2018 08:44
ha, they have a list of "approved" client
Matt Joiner
@anacrolix
Jun 12 2018 08:44
do you assin the same peer id next time?
assign*
Denis
@elgatito
Jun 12 2018 08:45
it's peerid + random(), so it's always new value, but it should start with -****-
i have checked with other clients, they just use their signature +random binary bytes
Matt Joiner
@anacrolix
Jun 12 2018 08:46
"-GT0001-UHCDW2LVB4TK"
what's the encoding at the end?
Denis
@elgatito
Jun 12 2018 08:46
yup, that is gotorrent (-GT0001-) with random chars
it's just chars for simplicity, it can be any byte
A number of clients begin the peer id with a dash followed by two characters to identify the client implementation, four ascii digits to denote version number, and a dash. As with mainline, the remaining bytes are random. An example is -AZ2060-.
Matt Joiner
@anacrolix
Jun 12 2018 08:53
yea so what are you encoding your random bytes with? by default i'm just using the random binary
yours looks like something else
and also how do you persist, or do you randomly assign each time you create the client?
Denis
@elgatito
Jun 12 2018 08:54
randomize on each NewClient call
it's just a rune array. should it be encoded somehow>
Denis
@elgatito
Jun 12 2018 10:55
Trying vscode after a year with Atom.. Pretty unusual
Matt Joiner
@anacrolix
Jun 12 2018 11:06
yeah i am still on sublime text
i use vscode for haskell
Denis
@elgatito
Jun 12 2018 11:32
i've been using st2 for years, atom was much more pleasant for golang, now trying vscode (for now it looks faster than atom)
btw, portfwd.go:32: discovered 0 upnp devices, map[] messages from upnp are logged even with Debug: false
Matt Joiner
@anacrolix
Jun 12 2018 11:53
i think that's intentional for now, i wanted feedback on whether it works
herrwusel
@herrwusel
Jun 12 2018 15:10
@elgatito when I enter that URL I can download a file. Do you need that? It's called profile
Denis
@elgatito
Jun 12 2018 15:11
yes, that is what we want to see CPU consumption
herrwusel
@herrwusel
Jun 12 2018 15:13
One sec