Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
All torrents is red
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / General / General Chat

2022-10-16 14:26:12
oh yes
forgot to post on the thread above,
the problem can come up (maybe) in the form of the statistics of leechers / seeders / completed not matching reality, but I have reported that to M-Jay and you can perhaps help with your test and opinions of course

Regards


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2022-10-16 16:39:25
I have a trick that shows me where issues are in a file.

I added this every 5  or 10 lines starting from bottom

echo “test”;

You move that upwards in the file (from bottom) and the moment you get no echo, you found a fault.

Now comment out that first echo, add one after the bad code, fix the bad code (or just replace) and if you see that second echo .. you just fixed a snag. Move on and repeat this for all sections of the file.

I do this for any programming language if I know how the parser scans the code.

It’s important to know that PHP “looks ahead” and sort of caches a preview of all upcoming variables, global and other bits.

This is why it knows a parsing error well ahead of time beyond the line you are working within.
2022-10-16 16:59:18
I could technically test the file but the code is awful, the logic of that announce file is designed like a central fold.

Meaning, the first section and last section of announce join together at the middle in a way that almost bends outward like folding a page of paper. It’s a bad design.

This is my flow on my announce:

Announce url > Check/Assign Keys > Check port/IP > Handle specific keys > Get user data from db : passkey/token > Get torrent data : token (encrypted) substr magic + decrypt > check stuff like free days, data usage, uploaded etc > peer row empty? INSERT else UPDATE > add peers to array, loop the array and handle the peer data (inet_pton / hex2bin / extensions) > check compact key + numwant > echo bencoded peers array.

I’m that order. More is going on like updating stats and other things but that’s the bulk of it.
2022-10-17 05:51:38
I'll post my full 2.08 announce later  👍
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728