I’m stuck on Stage #jv8
So I downloaded test case torrent files and it’s working locally,
But I am facing timeout for the same file on codecrafters test
This is 1 part of my code
I’m stuck on Stage #jv8
So I downloaded test case torrent files and it’s working locally,
But I am facing timeout for the same file on codecrafters test
This is 1 part of my code
@sayedMbo Could you upload your code to GitHub and share the link? It will be much easier to debug if I can run it directly.
Hi , yes here it is GitHub - bareXZ/codecrafters-bittorrent-python
@sayedMbo Got it. I’ll try to get back to you next week.
I checked again today, and it randomly passed all test cases. I am not sure what happened, but I hope I don’t face this issue again in the challenges ahead.
I had a similar issue in the past, in my case it was for two reasons:
That makes sense, would be fun exploring this, thanks for your nice explanation
the last pice might have smaller size than other pieces, you need to check file size and divide by number of pieces to check the last piece size.
Similar thing with last block of piece
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.