Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading bencoding error #18

Open
crosman95 opened this issue Mar 29, 2020 · 3 comments
Open

Uploading bencoding error #18

crosman95 opened this issue Mar 29, 2020 · 3 comments
Labels

Comments

@crosman95
Copy link

Hi,

When I try upload torrent files ex. 20GB, i got error messages: bencoding error

What is the problem? :(
How can I listen users, how many download and upload datas?

Thanks for help!
Sorry for my bad english.

@SuprDewd
Copy link
Owner

Can you upload your torrent file here to GitHub, so that I can test it locally?

simpletracker does not keep track of any upload/download statistics for users. It's meant to be very minimal.

@SuprDewd SuprDewd added the bug label Mar 30, 2020
@crosman95
Copy link
Author

of course
example.zip

@SuprDewd
Copy link
Owner

I got an "Upload successful" when I uploaded your example torrent file, so there must be something different in our environment that is causing the issue. What version of PHP are you using? Is there anything that could be changing the torrent file when it is being uploaded, e.g PHP magic quoting?

If you want to debug this yourself, you could:

  1. Add echo md5($data); to upload.php and compare it to the md5 sum of the original file (93d1d5407fa94a09dad3bfeaec2d01e1). If that's not the same, then there's something affecting the file as it's being uploaded.
  2. Search for return false; in bencoding.php. Add debugging statements around those returns to figure out what part of the torrent file seems to be broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants