Members   Search      Help    Register    Login    Home
Home » Support Forums for PMBT 1.X » General Help » too much http traffic around the external torrents indexed !
too much http traffic around the external torrents indexed ! [message #1814] Tue, 19 February 2008 21:11 Go to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
There are lots of traffic on torrents that are not local to the tracker..

way too much...this ain't necessary..I have to find out what the hell is going on.... why are there traffic on torrents that are not hosted locally from various IPs ..

they are there....even when I have autoscrape turned off..so that way I'm sure..there are not outgoing http fopen sockets..

http logs are fine with hits/scrape/announce on local torrents..but these are traffic..(incoming) coming in on http but not showing in apache logs and are socket based perhaps...and for getting info on external torrents ..

I donno..but I'll find out..
Re: too much http traffic around the external torrents indexed ! [message #1815 is a reply to message #1814] Tue, 19 February 2008 22:04 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
it seems to me...torrents downloaded by users from the tracker that have dht but are external .....are broadcasting back scrape/announce stats to the tracker!??

man..way..too much traffic....why does my http sockets server should care about dht torrents broadcast back from the user bittorent client specially when it is external!?

I traced one IP from tcpdump that shows it also has external torrent with dht and communicating back to my tracker!

I never liked dht traffic...I always have that off in my bittorrent client...

is the webserver tracker acting like a dht enabled bittorent client ? how do I turn that off?

I might be all wrong ..so...I'll have to dig in later..

Re: too much http traffic around the external torrents indexed ! [message #1839 is a reply to message #1815] Mon, 10 March 2008 02:05 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
okay..here is what I see..

Why should I get so much traffic on external torrents listed on tracker index? it don't even have dht on those torrents..

Why should my tracker care about how much he is downloaded or upload or incompletel on a specific external torrent?

This is tons of unnecessary traffic. It is not RIGHT! something is wrong..

Here is just one example of the dump of network sniffing, I replaced my tracker info with "tracker" and client ip with "client" and name of torrent to "torrent description which don't even belong to my local tracker!!!!

tracker -> client HTTP 20058:completei0e10:downloadedi1e10:incompletei0ee20:&.C Q
tracker -> client HTTP (body)
client -> tracker HTTP C port=2413
tracker -> client HTTP Torrent description(DivX) avi8:completei3e10:downloadedi145e10:incompletei0ee20:
client -> tracker HTTP C port=2413
tracker -> client HTTP (body)
tracker -> client HTTP torrent description (Ch 4) 2008 02 15 xvid8:completei18e10:downloadedi29e10:in
tracker -> client HTTP tei19e10:downloadedi34e10:incompletei27ee20:]C`&Y
tracker -> client HTTP de Barl8:completei16e10:downloadedi30e10:incompletei0ee20:1
client -> tracker HTTP C port=2413
tracker -> client HTTP (body)

it seems like I get all the peers traffic on all torrents even if external...something ain't right...help if you can..

I'm talking about tons of packets that I should not see or the tracker should even care about!!

Are these sources scraping external torrents stats off of my tracker!!? why?

I even see what other torrents they have on thier bittorent client ..that I don't have anything to do with them!? not even on the website torrent index list!?

this is some wierd stuff..

[Updated on: Mon, 10 March 2008 02:57]

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #1840 is a reply to message #1839] Mon, 10 March 2008 03:20 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
is your announce being added to the torrents?
sounds like it a torrent client issue besides your tracker should be kicking these announce's and scrapes for torrents that arnt yours back with error saying not regesterd with this tracker.
It could also be some people adding your announce to there torrent client so that it well announce to your site. I know that I have done this a few times my self Twisted Evil . but that was to seed a torrent on that site that needed seeding. But if you just add the announce to the torrent then it changes the info_hash and renders the torrent useless to the first site and would have to be reuploaded to both sites. have you checked the tracker list of some of these torrents to see if your site was added to the torrent?


http://a.imageshack.us/img831/5562/mybikes.png

[Updated on: Mon, 10 March 2008 03:29]

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #1841 is a reply to message #1840] Mon, 10 March 2008 05:44 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
I just downloaded an external torrent from my tracker that was uploaded to it.

and tracker is tpb and I don't see any signs of my tracker announce in the client.

anyway..I don't like this behavior of my tracker being a supertracker!! Twisted Evil

too much useless traffic...

I'm looking at some of the tables to see what I can find..but nothing so far.

if u want you I can get u a copy/paste of snoop activities.

when the client hits the scrape/announce on local trorrents , ..are we somehow requesting more bytes of information back from them.... that causes them to send more stream of packets as such as other torrents they are downloading that are not even local?

I'm gonna monitor on one of the client IP activity traffic and see what's happening...why so many additional traffic..

but it seems like they (clients) are communicating with tracker http on torrents that are clearly external.

I might have to dissect the external torrent files and the announce program and see what could have gone wrong! Very Happy

let me know what else u suggest.


Re: too much http traffic around the external torrents indexed ! [message #1842 is a reply to message #1841] Mon, 10 March 2008 12:27 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
its not announce.php or scrape.php they dont requist any thing
the only thing that requistes any thing would be the script that get this information on each torrent wich is in clean.php
and that is a major pease of the tracker it gets all the torrent updates.((seeders leechers and downloads ))
some times the trackers it contackts dont send just the info on the one torrent some time it sends info for a set ammount wich is called a global scape try to turn off External Torrent Monitoring
and see if it stops all them


http://a.imageshack.us/img831/5562/mybikes.png
Re: too much http traffic around the external torrents indexed ! [message #1843 is a reply to message #1814] Mon, 10 March 2008 18:16 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
yea..I have turned off external torrnet monitoring and not much difference...I'll keep that off for a while and see..


I'll look into clean.php and torrents and monitor some more and see...

Thanks

Re: too much http traffic around the external torrents indexed ! [message #1844 is a reply to message #1843] Tue, 11 March 2008 07:05 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
where is clean.php?

I see ob_clean in announce.php and cleanup.php in include

well..it seems like my tracker is scraping off the bittorrent clients.. instead of other trackers!
Very Happy

I look into the code to see what's going on!....unless u find something interesting....sooner..let me know


update:

I have a feeling announce.php response is wrong...
either infohash decoding is incorrect or corrupted tables..somewhere..or maybe info written/read to the tables during announce/scraping is wrong..

I might have to write a script/routine to grab infohash decoded request from client and and see why announce.php response are about the external torrents stats!

[Updated on: Tue, 11 March 2008 09:18]

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #1845 is a reply to message #1844] Tue, 11 March 2008 11:54 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
sorry ment cleanup.php

http://a.imageshack.us/img831/5562/mybikes.png
Re: too much http traffic around the external torrents indexed ! [message #1908 is a reply to message #1845] Thu, 03 April 2008 04:19 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
so here is the deal, I think...
Laughing

torrent_peers tables suppose to have all the current (active) announce/scrape hits in it and I look at the torrent numbers in that table ...and they are mostly external torrents.

What's going on here!?
Shocked


edit: one torrent has edonkey/dht and has three pages of phpmyadmin current records in torrent_peers...
and it is external torrent

I have to remove this torrent and see if I can get some of the this traffic off the network.

Torrent_peers suppose to have only clients for the local torrents in there. I don't think this is right..something is broken.

[Updated on: Thu, 03 April 2008 04:32]

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #1912 is a reply to message #1908] Thu, 03 April 2008 09:46 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
Joe helped me with a change that I wanted.

So on external torrents listed with pmbt, announce.php will respond with "torrent not registered" and therefore the number of records in torrent_peers decreased to only torrents that are local and registered with tracker which allows me to have lower tax on the network bandwidth and database hits and eventually lower hits on apache as well.

in announce.php, the changes are in red


$sql_select = "SELECT id, name, seeders, tracker,leechers FROM ".$db_prefix."_torr
ents WHERE banned = 'no' AND " . hash_where("info_hash", $info_hash)." LIMIT 1;";
$res = $db->sql_query($sql_select) or err("SQL Error = ".$sql_select);
if ($db->sql_numrows($res) < 1) err("Torrent not registered with this tracker.");
$torrent = $db->sql_fetchrow($res);
$db->sql_freeresult($res);
if ($torrent["tracker"] != "")err("Torrent not registered with this tracker.");

Joe, Thank you
Re: too much http traffic around the external torrents indexed ! [message #1925 is a reply to message #1814] Wed, 09 April 2008 16:45 Go to previous messageGo to next message
lodp is currently offline lodp  Austria
Messages: 336
Registered: June 2006
Releaser
wow.. i wasn't aware the tracker tracks all torrents that have their infohash registered on the database. but it kinda makes sense, i guess.

it's curious this turned out to be such a problem on your site, DrAgon. peers have to manually add your tracker in the client to make an announce, right? you wouldn't expect too many people to do that, would you?
Re: too much http traffic around the external torrents indexed ! [message #1928 is a reply to message #1925] Thu, 10 April 2008 06:32 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
well ..# of peers dropped to 1/3 of what it was..

it is simple..phpmyadmin .browse torrent_peers .sort by torrent
and it'll give you a clue to at least few large culprit ext torrent..that might have 300 to 400 peers..on it.. and that just ain't right with the types of torrents I am interest in..

anyways..what they also do is called torrent modification (non-destructive) edit... so robot and other site admins..grab them..and put announce url in it..

so I don't think.. every member/client are the ones doing that..I doubt that.

so clients could be fetching a torrent from another site that has ur tracker as registerant by above edit method.

in summary....I really don't care about an external torrent that has 300 peers on it on daily basis for months after months non-stop Laughing ... and it is not what I was interested in tracking anyways....it was like rage against the machine or something like that...

Re: too much http traffic around the external torrents indexed ! [message #1999 is a reply to message #1928] Sat, 10 May 2008 06:13 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
I also tried to optimize scrape.php to only respond to local torrents and not external torrents..

I think this has been the major source of traffic..that is not needed..lodp also will benefit from this ....he asked me about it today..I have him..refer to this post..

with the changes..I ran few tests.. and seeding/leeching local torents looked okay..and seem to be working..

but not quite sure about it yet...

azures scrape status says ok..and utorrent finally scrape status said ok.. when I stop torrent! I'll run more tests later..

anyways...please check the code and let me know if it is correct..red fonts are additions.
I'm not sure about the two lines with chk in it , either.

if (count($info_hash_arr) < 1) $sql = "SELECT info_hash, tracker, seeders AS complete, com
pleted AS downloaded, leechers AS incomplete, name FROM ".$db_prefix."_torrents ORDER BY i
d;";
else $sql = "SELECT info_hash, tracker, seeders AS complete, completed AS downloaded, leec
hers AS incomplete, name FROM ".$db_prefix."_torrents WHERE ".hash_where("info_hash", $inf
o_hash_arr);^M
^M
if (! $res = $db->sql_query($sql)) err("SQL ERROR: ".$sql);^M
$chk = $db->sql_fetchrow($sql);
if ($chk["tracker"] != "")err("Torrent not registered with this tracker.");
if ($db->sql_numrows($res) < 1) err("Torrent not registered with this tracker.");^M
^M
$r .= "d5:filesd";
while ($row = $db->sql_fetchrow($res)) {^M
if ($row["tracker"] == ""){
$r .= "20:" . hash_pad($row["info_hash"]) . "d" .^M
"4:name". strlen($row["name"]) .":". $row["name"].^M
"8:completei". $row["complete"] ."e".^M
"10:downloadedi". $row["downloaded"] ."e".^M
"10:incompletei". $row["incomplete"] ."e".^M
# "tracker". $row["tracker"] ."e".
"e";^M
}
}^M

[Updated on: Sat, 10 May 2008 06:22]

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #2000 is a reply to message #1999] Sat, 10 May 2008 11:17 Go to previous messageGo to next message
Revan is currently offline Revan  Czech Republic
Messages: 125
Registered: April 2007
Super-Seeder
looks good to me, but i'd just ask about 2 things..
first one - what about changing this:

$chk = $db->sql_fetchrow($sql);
if ($chk["tracker"] != "")err("Torrent not registered with this tracker.");if ($db->sql_numrows($res) < 1) err("Torrent not registered with this tracker.");

$r .= "d5:filesd";
while ($row = $db->sql_fetchrow($res)) {
if ($row["tracker"] == ""){
$r .= "20:" . hash_pad($row["info_hash"]) . "d" .
"4:name". strlen($row["name"]) .":". $row["name"].

to this (removing those 2 $chk lines):
if ($db->sql_numrows($res) < 1) err("Torrent not registered with this tracker.");

$r .= "d5:filesd";
while ($row = $db->sql_fetchrow($res)) {
if ($row["tracker"] != "")err("Torrent not registered with this tracker.");
if ($row["tracker"] == ""){
$r .= "20:" . hash_pad($row["info_hash"]) . "d" .
"4:name". strlen($row["name"]) .":". $row["name"].

and the other thing - what does this line do?
# "tracker". $row["tracker"] ."e".

but it looks good Smile
Re: too much http traffic around the external torrents indexed ! [message #2001 is a reply to message #1999] Sat, 10 May 2008 14:08 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
DrAgon wrote on Sat, 10 May 2008 01:13

I also tried to optimize scrape.php to only respond to local torrents and not external torrents..

I think this has been the major source of traffic..that is not needed..lodp also will benefit from this ....he asked me about it today..I have him..refer to this post..

with the changes..I ran few tests.. and seeding/leeching local torents looked okay..and seem to be working..

but not quite sure about it yet...

azures scrape status says ok..and utorrent finally scrape status said ok.. when I stop torrent! I'll run more tests later..

anyways...please check the code and let me know if it is correct..red fonts are additions.
I'm not sure about the two lines with chk in it , either.

if (count($info_hash_arr) < 1) $sql = "SELECT info_hash, tracker, seeders AS complete, com
pleted AS downloaded, leechers AS incomplete, name FROM ".$db_prefix."_torrents ORDER BY i
d;";
else $sql = "SELECT info_hash, tracker, seeders AS complete, completed AS downloaded, leec
hers AS incomplete, name FROM ".$db_prefix."_torrents WHERE ".hash_where("info_hash", $inf
o_hash_arr);^M
^M
if (! $res = $db->sql_query($sql)) err("SQL ERROR: ".$sql);^M
$chk = $db->sql_fetchrow($sql);
if ($chk["tracker"] != "")err("Torrent not registered with this tracker.");
if ($db->sql_numrows($res) < 1) err("Torrent not registered with this tracker.");^M
^M
$r .= "d5:filesd";
while ($row = $db->sql_fetchrow($res)) {^M
if ($row["tracker"] == ""){
$r .= "20:" . hash_pad($row["info_hash"]) . "d" .^M
"4:name". strlen($row["name"]) .":". $row["name"].^M
"8:completei". $row["complete"] ."e".^M
"10:downloadedi". $row["downloaded"] ."e".^M
"10:incompletei". $row["incomplete"] ."e".^M
# "tracker". $row["tracker"] ."e".
"e";^M
}
}^M



this is all wrong and you are about to kill your scrape


http://a.imageshack.us/img831/5562/mybikes.png
Re: too much http traffic around the external torrents indexed ! [message #2002 is a reply to message #1814] Sat, 10 May 2008 15:43 Go to previous messageGo to next message
lodp is currently offline lodp  Austria
Messages: 336
Registered: June 2006
Releaser
I checked my webalizer stats and discovered that 90% of my outgoing data on the server originates from scrape.php. That's a whole frickin lot.

My issue is not so much people scraping for external torrents, but the length of the response they get. I checked my apache access logs, and they say the response is about 340kb.

Are you guys getting the same numbers in your logs? Isn't 340KB way too long? Isn't the response only supposed to consist of a short string (Seeds, leechers, downloaded, infohash).

I tried to enter debug code into scrape.php, to have it mail the response to me (like announce.php can), but not success so far..


EDIT
OK, i think i can see what the problem is now. It's serving a full scrape for ALL torrents, even when the client only scrapes for one infohash.

The code is supposed to be able to distinguish between scrapes with multiple hashes and single ones, but for some reason it always assumes multiple:

if (count($info_hash_arr) < 1) $sql = "SELECT info_hash, seeders AS complete, completed AS downloaded, leechers AS incomplete, name FROM ".$db_prefix."_torrents ORDER BY id;";
else $sql = "SELECT info_hash, seeders AS complete, completed AS downloaded, leechers AS incomplete, name FROM ".$db_prefix."_torrents WHERE ".hash_where("info_hash", $info_hash_arr);

[Updated on: Sat, 10 May 2008 16:08]

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #2003 is a reply to message #2002] Sat, 10 May 2008 17:07 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
please replace your scrape.php with <?php
/*
*-------------------------------phpMyBitTorrent--------------------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------   Created By Antonio Anzivino (aka DJ Echelon)   --------------*
*-------------               http://www.p2pmania.it               -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              http://www.bittorrent.com             -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*--   This program is free software; you can redistribute it and/or modify   --*
*--   it under the terms of the GNU General Public License as published by   --*
*--   the Free Software Foundation; either version 2 of the License, or      --*
*--   (at your option) any later version.                                    --*
*--                                                                          --*
*--   This program is distributed in the hope that it will be useful,        --*
*--   but WITHOUT ANY WARRANTY; without even the implied warranty of         --*
*--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          --*
*--   GNU General Public License for more details.                           --*
*--                                                                          --*
*--   You should have received a copy of the GNU General Public License      --*
*--   along with this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
*------------------------------------------------------------------------------*
*------              ©2005 phpMyBitTorrent Development Team              ------*
*-----------               http://phpmybittorrent.com               -----------*
*------------------------------------------------------------------------------*
*/


require_once("include/config_lite.php");

if (
eregi("(Mozilla|Opera|Lynx|Netscape)",$HTTP_SERVER_VARS["HTTP_USER_AGENT"])) {
        die(
"<html><head><title>Error!</title></head><body><h3>Sorry, but this file is not suitable for browsers.</h3></body></html>");
}

if (
$stealthmode) die();

function
hash_where($name, $hash_arr) {
        
$new_hash_arr = Array();
        foreach (
$hash_arr as $hash) {
                
array_push($new_hash_arr,"'".urldecode  ( $hash)."'");
        }
        return
$name." IN ( ".implode(",",$new_hash_arr)." )";
}

function
err($msg) {
        
benc_resp_raw("d14:failure reason". strlen($msg) .":". $msg);
        die();
}

function
hash_pad($hash) {
        return
str_pad($hash, 20);
}
function
benc_resp_raw($x) {
        
header("Content-Type: text/plain");
        
header("Pragma: no-cache");
        echo
$x;
}
//$info_hash_array = array('info_hash');
preg_match_all('/info_hash=([^&]*)/i', $_SERVER["QUERY_STRING"], $info_hash_array);
$info_hash_array = str_replace('info_hash=','',$info_hash_array[0]);
//print_r($info_hash_array);

if (count($info_hash_array) < 1) $sql = "SELECT tracker, info_hash, seeders AS complete, completed AS downloaded, leechers AS incomplete, name FROM ".$db_prefix."_torrents WHERE tracker IS NULL AND exeem IS NOT NULL ORDER BY id;";
else
$sql = "SELECT info_hash, seeders AS complete, completed AS downloaded, leechers AS incomplete, name FROM ".$db_prefix."_torrents WHERE ".hash_where("info_hash", $info_hash_array);

if (!
$res = $db->sql_query($sql)) err("SQL ERROR: ".$sql);
if (
$db->sql_numrows($res) < 1) err("Torrent not registered with this tracker." . $sql ."");

$r .= "d5:filesd";
while (
$row = $db->sql_fetchrow($res)) {
        
$r .= "20:" . hash_pad($row["info_hash"]) . "d" .
        
"4:name". strlen($row["name"]) .":". $row["name"].
        
"8:completei". $row["complete"] ."e".
        
"10:downloadedi". $row["downloaded"] ."e".
        
"10:incompletei". $row["incomplete"] ."e".
        
"e";
}
$r .= "e";
if (
$announce_interval > 0 OR $announce_interval_min > 0) {
        
$r .= "5:flagsd20:min_request_intervali".max($announce_interval,$announce_interval_min)."ee";
}
$r .= "e";

ob_clean();
benc_resp_raw($r);

$db->sql_query("",END_TRANSACTION);
if (!
$db->persistency) $db->sql_close();
die();
?>


http://a.imageshack.us/img831/5562/mybikes.png

[Updated on: Sat, 10 May 2008 17:07]

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #2004 is a reply to message #2003] Sat, 10 May 2008 19:51 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
I'm glad we finally stopped dancing around. Laughing

let's see if it works.

Re: too much http traffic around the external torrents indexed ! [message #2005 is a reply to message #1814] Sat, 10 May 2008 22:34 Go to previous messageGo to next message
Revan is currently offline Revan  Czech Republic
Messages: 125
Registered: April 2007
Super-Seeder
Can I ask why urldecode ( $hash) instead of addslashes($hash) ?

So the error in the script was the variable $info_hash_arr, instead of $info_hash_array ?
Or something else? Sorry for maybe dumb questions, just want to learn something new Very Happy
Re: too much http traffic around the external torrents indexed ! [message #2006 is a reply to message #2005] Sat, 10 May 2008 23:08 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
yea..that's seems to be the change..

also.. I am interested in $r going out to client..when I sniff the wire.....before tons of packet going out with $r on all sort of infohashes..even the ones.. that was not registerd with tracker.
and now..I don't see $r going out..

but client scrape status is okay!


[Updated on: Sat, 10 May 2008 23:20]

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #2013 is a reply to message #1814] Mon, 12 May 2008 00:12 Go to previous messageGo to next message
lodp is currently offline lodp  Austria
Messages: 336
Registered: June 2006
Releaser
All hail to joe! I don't know about you guys, but joe's fix reduced my traffic by about 80%, if you can believe it. I was seriously thinking about renting an additional server because I was transcending my traffic limits. Saves me a lot of trouble. Thanks, joe!

Quote:

also.. I am interested in $r going out to client..when I sniff the wire.....before tons of packet going out with $r on all sort of infohashes..even the ones.. that was not registerd with tracker.
and now..I don't see $r going out..


i'm not sure i get exactly what you'd like to do .. but what i did to find out about the response sent out to the client was this:

insert the following (referring to line numbers in the script joe posted):

Line 37:
require_once("include/class.email.php");

function is_email($email) {
        return preg_match("/^(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\\-+)|([A-Za-z0-9]+\\.+)|([A-Za-z0-9]+\\++))*[A-Za-z0-9]+@((\\w+\\-+)|(\\w+\\.))*\\w{1,63}\\.[a-zA-Z]{2,6}$/",$email);
}


Line 86:

$email = New eMail();
$email->Add($admin_email);
$email->subject = "Scrape Debug";
$email->body = $_SERVER["QUERY_STRING"]."\n\n\n".$inf."\n\n\n".$r;
$email->Send();


This will email the scrape response to your admin email. Make sure to leave the code in place only for a couple of seconds though, it'll fill your mail account right up otherwise Smile

That code is already in place in announce.php if you'd like to investigate there. you just have to set $debug to "true" at the top.
Re: too much http traffic around the external torrents indexed ! [message #2014 is a reply to message #2013] Mon, 12 May 2008 02:53 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
***[[edited by admin NO FIGHTING]]***

[Updated on: Tue, 13 May 2008 05:48] by Moderator

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #2015 is a reply to message #2014] Mon, 12 May 2008 04:21 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
Umm please lets not argue here!
This is supoase to be a frendly place to get help and give it.
I don't ask for anything but people to enjoy my work and to help as much or as little as they can.
V2.0 well be far more advanced and more friendly then ever before and server its purpose as a light weight tracker with benefits never before found in a tracker.
This is thanks to every one from every bug reporter issue solver modd maker and div.
If you feel that any of this code is yours and you demand thanks for it then by all means remove it from this boar and more on
this is all open source and every must relize that you may or may not get a http://www.moviegamesmore.net/smiles/thankyou.gif on any thing that you do here remember every thing helps everyone in the long run.

so here is your thankyou!!!!!!!!!!!!

http://www.moviegamesmore.net/smiles/thankyou.gifdjechelon
http://www.moviegamesmore.net/smiles/thankyou.gifJoeroberts
http://www.moviegamesmore.net/smiles/thankyou.giflodp
http://www.moviegamesmore.net/smiles/thankyou.gifdragon
http://www.moviegamesmore.net/smiles/thankyou.gifrevan
http://www.moviegamesmore.net/smiles/thankyou.gifRazorSK
and many many morehttp://www.moviegamesmore.net/smiles/thankyou.gif.


http://a.imageshack.us/img831/5562/mybikes.png
Re: too much http traffic around the external torrents indexed ! [message #2016 is a reply to message #2015] Mon, 12 May 2008 07:52 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
***[[edited by admin NO FIGHTING]]***

[Updated on: Tue, 13 May 2008 05:49] by Moderator

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #2020 is a reply to message #1814] Mon, 12 May 2008 10:35 Go to previous messageGo to next message
Revan is currently offline Revan  Czech Republic
Messages: 125
Registered: April 2007
Super-Seeder
Amen to Joe's post!

And I think no one's even thinking about kicking someone out - if we need anything to kick, then to kick someone in I suppose Very Happy

And I also say a big THANK YOU to everyone who participated somehow in anything around this big project, it's really great!


And back to topic - I think I'll try mailing myself the response as well, this is something I really want to take a closer look at Smile

[Updated on: Mon, 12 May 2008 10:36]

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #2021 is a reply to message #2020] Mon, 12 May 2008 18:37 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
First..I'll kick whomever wrote the announce and scrape.... Rolling Eyes maybe someone rushed and wrote it !

All hail to me for brining this major issue up if you want to call it finding bug or whatever.... annoying inefficient traffic I have been chasing... for many month! Twisted Evil

then of course all hail to Joe for fixing it for us..
both announce and scrape..

I find this fix as major fix and I am actually very happy with this tracker for first time! Razz

We got a good team here....keep up the good work. Smile

Thanks Joe for all your fixes and work for next release.

on the response, again..I'more interested to why I seeing it on the wire before..and now it is nicely packed within a packet. I know what the response looks like. Never mind me..I'll do what I want to chase down. Laughing

[Updated on: Mon, 12 May 2008 18:59]

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #2024 is a reply to message #1814] Mon, 12 May 2008 23:36 Go to previous messageGo to next message
lodp is currently offline lodp  Austria
Messages: 336
Registered: June 2006
Releaser
***[[edited by admin NO FIGHTING]]***

[Updated on: Tue, 13 May 2008 05:50] by Moderator

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #2032 is a reply to message #2024] Tue, 13 May 2008 02:35 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
***[[edited by admin NO FIGHTING]]***

[Updated on: Tue, 13 May 2008 05:50] by Moderator

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #2033 is a reply to message #1814] Tue, 13 May 2008 04:23 Go to previous messageGo to next message
lodp is currently offline lodp  Austria
Messages: 336
Registered: June 2006
Releaser
***[[edited by admin NO FIGHTING]]***

[Updated on: Tue, 13 May 2008 05:51] by Moderator

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #2036 is a reply to message #2033] Wed, 14 May 2008 01:30 Go to previous messageGo to next message
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
Joe..please enable all those posts...

First of all discussion and back and forth yelling and fighting is actually good for this project.

We all run out and say stuff and we need few days to reflect and look back at it..and we learn from them..

nobody is perfect so ..enable them so we all can re-read and learn and reflect and say a bit more and move on....





[Updated on: Wed, 14 May 2008 04:40]

Report message to a moderator

Re: too much http traffic around the external torrents indexed ! [message #2042 is a reply to message #1814] Sat, 17 May 2008 20:21 Go to previous message
Revan is currently offline Revan  Czech Republic
Messages: 125
Registered: April 2007
Super-Seeder
Just realized that the same bug that occurs in announce for some clients - missing key, will probably occur here too...

So how about adding something like this before the line with preg_match_all?
if (isset($_GET["passkey"])) $passkey = $_GET["passkey"];
else $passkey = "";

if (strpos($passkey, "?"))
{
  $tmp = substr($passkey , strpos($passkey , "?"));
  $passkey  = substr($pid , 0,strpos($passkey , "?"));
  $tmpname = substr($tmp, 1, strpos($tmp, "=")-1);
  $tmpvalue = substr($tmp, strpos($tmp, "=")+1);
  $_GET[$tmpname] = $tmpvalue;
}

if ($passkey!="") $_SERVER["QUERY_STRING"]=substr($_SERVER["QUERY_STRING"],strlen("?passkey=$passkey"));
else $_SERVER["QUERY_STRING"]=$_SERVER["QUERY_STRING"];


Let me know what you think...
Previous Topic:Help for Migration to a dedicated server
Next Topic:phpnuke - module
Goto Forum:
  


Current Time: Wed Feb 08 11:27:54 GMT 2012

Total time taken to generate the page: 0.01038 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software