XFileSharing Free - Downloading speed.

Message
Author
dollarek
Posts: 46
Joined: Jan 11, 2008 5:09 pm

Downloading speed.

#1 Postby dollarek » Feb 03, 2008 11:58 am

Hi.

Is this script allowing some downloading speed? cuz when i download something using this script it does about 500 kbps but if file is on on ftp and i download using direct link its does my normaln internet speed which is 800 kbps. I use 1gb SLA connection to my dedicated server. And it was only used about 5 MB whan i was testing.

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Feb 04, 2008 7:08 am

This is due to some CPU optimizations while downloading.
To achieve full speed, comment this line in index.cgi:

Code: Select all

select(undef, undef, undef,0.006);

dollarek
Posts: 46
Joined: Jan 11, 2008 5:09 pm

#3 Postby dollarek » Feb 04, 2008 3:19 pm

PilgrimX182 wrote:This is due to some CPU optimizations while downloading.
To achieve full speed, comment this line in index.cgi:

Code: Select all

select(undef, undef, undef,0.006);
I am not the best in cgi. I bit more in php, do you mean comment as

Code: Select all

//select(undef, undef, undef,0.006);
If this is what u meant than site is crashing after adding slash

splatmatic
Posts: 4
Joined: Jan 02, 2008 2:26 am

#4 Postby splatmatic » Feb 05, 2008 12:24 am

to comment out a perl script its a # symbol.

Hope that helps.

Splat

dollarek
Posts: 46
Joined: Jan 11, 2008 5:09 pm

#5 Postby dollarek » Feb 05, 2008 9:55 am

Code: Select all

#select(undef, undef, undef,0.006);
dont work ether

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#6 Postby PilgrimX182 » Feb 05, 2008 10:26 am

Talking bout XFS1.2, right? Don't work what? You have error or same lower speed?

To speedup you can also try to change

Code: Select all

read($in_fh,$buf,4096)
to

Code: Select all

read($in_fh,$buf,8192)
in index.cgi

dollarek
Posts: 46
Joined: Jan 11, 2008 5:09 pm

#7 Postby dollarek » Feb 05, 2008 11:58 am

Yes i wanted to speed up downlonad speed, cuz using 1.2 it goes only up to about 400/500 . I will test what u just gave me after i finish by ICT.

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#8 Postby PilgrimX182 » Feb 05, 2008 12:13 pm

In XFS1.2 speed could be lower cause perl script output the file, also this eat pretty much CPU.

In PRO version download speed is the same as for static files.

There are some ways to make speed even higher than static files from Apache but I won't tell you all the secrets now :)

dollarek
Posts: 46
Joined: Jan 11, 2008 5:09 pm

#9 Postby dollarek » Feb 05, 2008 12:17 pm

:) okokokok anyway you are brilliant