Eventually I'll work out what causes this, but for now it's incredibly rare.
panic("piece in request order but peer doesn't have it")
}
if !t.wantPiece(pieceIndex) {
- panic("unwanted piece in connection request order")
+ log.Printf("unwanted piece %d in connection request order\n%s", pieceIndex, c)
+ c.pieceRequestOrder.DeletePiece(pieceIndex)
+ continue
}
piece := t.Pieces[pieceIndex]
for _, cs := range piece.shuffledPendingChunkSpecs(t.pieceLength(pieceIndex), pp.Integer(t.chunkSize)) {