RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

Newsletter script
Downloading speed.

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Free
View previous topic :: View next topic  
Author Message
dollarek



Joined: 11 Jan 2008
Posts: 46

PostPosted: Feb 03, 2008 11:58 am    Post subject: Downloading speed. Reply with quote

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.
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1901
Location: UFO Lab

PostPosted: Feb 04, 2008 7:08 am    Post subject: Reply with quote

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

Code:
select(undef, undef, undef,0.006);
Back to top
View user's profile Send private message Visit poster's website
dollarek



Joined: 11 Jan 2008
Posts: 46

PostPosted: Feb 04, 2008 3:19 pm    Post subject: Reply with quote

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

Code:
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(undef, undef, undef,0.006);
If this is what u meant than site is crashing after adding slash
Back to top
View user's profile Send private message
splatmatic



Joined: 02 Jan 2008
Posts: 4

PostPosted: Feb 05, 2008 12:24 am    Post subject: Reply with quote

to comment out a perl script its a # symbol.

Hope that helps.

Splat
Back to top
View user's profile Send private message
dollarek



Joined: 11 Jan 2008
Posts: 46

PostPosted: Feb 05, 2008 9:55 am    Post subject: Reply with quote

Code:
#select(undef, undef, undef,0.006);


dont work ether
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1901
Location: UFO Lab

PostPosted: Feb 05, 2008 10:26 am    Post subject: Reply with quote

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:
read($in_fh,$buf,4096)

to
Code:
read($in_fh,$buf,8192)

in index.cgi
Back to top
View user's profile Send private message Visit poster's website
dollarek



Joined: 11 Jan 2008
Posts: 46

PostPosted: Feb 05, 2008 11:58 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1901
Location: UFO Lab

PostPosted: Feb 05, 2008 12:13 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Visit poster's website
dollarek



Joined: 11 Jan 2008
Posts: 46

PostPosted: Feb 05, 2008 12:17 pm    Post subject: Reply with quote

Smile okokokok anyway you are brilliant
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Free All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group