You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File: requesting.go134: func (p*peerRequests) Less(i, jint) bool {
135: leftRequest:=p.requestIndexes[i]
136: rightRequest:=p.requestIndexes[j]
137: t:=p.peer.t138: leftPieceIndex:=leftRequest/p.torrentStrategyInput.ChunksPerPiece139: rightPieceIndex:=rightRequest/p.torrentStrategyInput.ChunksPerPiece140: leftCurrent:=p.peer.actualRequestState.Requests.Contains(leftRequest)
141: rightCurrent:=p.peer.actualRequestState.Requests.Contains(rightRequest)
142: pending:=func(indexRequestIndex, currentbool) int {
143: ret:=t.pendingRequests.Get(index)
144: ifcurrent {
145: ret--146: }
147: // I have a hunch that this could trigger for requests for chunks that are choked and not148: // allowed fast, since the current conn shouldn't already be included. It's a very specific149: // circumstance, and if it triggers I will fix it.150: ifret<0 {
151: panic(ret)
152: }
153: returnret154: }
The text was updated successfully, but these errors were encountered:
anacrolix
changed the title
Panic -1 requesting.go
Panic -1 requesting.go (peer-requesting branch)
Oct 24, 2021
Hi,
I got this error sometimes (I'm using peer-requesting branch)
From here :
The text was updated successfully, but these errors were encountered: