These are chat archives for anacrolix/torrent

17th
Feb 2018
Matt Joiner
@anacrolix
Feb 17 2018 00:02
anacrolix/torrent has "buffering" of a sort provided by the readahead. are there any other buffers going on?
once the readahead is filled, you may see a jump in activity when the reader moves forward so that a new piece is in the readahead window, at which point it will request it from peers and download the next entire piece to completion, this happens a lot on my production server
the buffering outside of the torrent package worries me, as it's out of my control and i don't know how it operates
you shouldn't need it
deranjer
@deranjer
Feb 17 2018 03:47
@anacrolix I can now reproduce the error every single time when I stop a torrent.. since I was using a hackey workaround, that might be the issue, here is the output:
?[36mINFO?[0m[0041] Matched for stopping torrents                 ?[36mselection?[0m=750db6d9d2f9bf014461e486a63cf308051235eb
Running Command... oldMax=singleTorrent.SetMaxEstablishedConns(0)
panic: -1

goroutine 5568 [running]:
github.com/anacrolix/torrent.(*Torrent).assertNoPendingRequests(0xc04220b500)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1257 +0xf3
github.com/anacrolix/torrent.(*Torrent).deleteConnection(0xc04220b500, 0xc0429dc280, 0xc0432f7ed0)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1249 +0xdc
github.com/anacrolix/torrent.(*Torrent).dropConnection(0xc04220b500, 0xc0429dc280)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1265 +0x64
github.com/anacrolix/torrent.(*Client).runHandshookConn(0xc042214c00, 0xc0429dc280, 0xc04220b500, 0x1)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/client.go:885 +0x366
github.com/anacrolix/torrent.(*Client).outgoingConnection(0xc042214c00, 0xc04220b500, 0xc042e9ec60, 0x11, 0xc8607b, 0x2)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/client.go:732 +0x1df
created by github.com/anacrolix/torrent.(*Torrent).initiateConn
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1737 +0x2bf
panic: -1

goroutine 5244 [running]:
github.com/anacrolix/torrent.(*Torrent).assertNoPendingRequests(0xc04220b500)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1257 +0xf3
github.com/anacrolix/torrent.(*Torrent).deleteConnection(0xc04220b500, 0xc04225e500, 0xc043493ed0)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1249 +0xdc
github.com/anacrolix/torrent.(*Torrent).dropConnection(0xc04220b500, 0xc04225e500)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1265 +0x64
github.com/anacrolix/torrent.(*Client).runHandshookConn(0xc042214c00, 0xc04225e500, 0xc04220b500, 0x1)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/client.go:885 +0x366
github.com/anacrolix/torrent.(*Client).outgoingConnection(0xc042214c00, 0xc04220b500, 0xc042d80100, 0x12, 0xc8607b, 0x2)
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/client.go:732 +0x1df
created by github.com/anacrolix/torrent.(*Torrent).initiateConn
        C:/Users/deranjer/go/src/github.com/anacrolix/torrent/torrent.go:1737 +0x2bf
exit status 2
I'm on go 1.10 and I pulled the latest from your repos
Denis
@elgatito
Feb 17 2018 08:12
@anacrolix that is default file storage. So we do select file for download. If user says it was better before last versions, maybe he had bigger connections number, and that is too much for the system?
Matt Joiner
@anacrolix
Feb 17 2018 12:32
@deranjer that bit "SetMaxEstablishedConns(0)", does that trigger it?
deranjer
@deranjer
Feb 17 2018 13:56
@anacrolix yes it crashes directly after that, it doesn't print the log line directly after that command.