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.
XFileSharing Free - Downloading speed.
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
This is due to some CPU optimizations while downloading.
To achieve full speed, comment this line in index.cgi:
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 asPilgrimX182 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);
Code: Select all
//select(undef, undef, undef,0.006);
-
- Posts: 4
- Joined: Jan 02, 2008 2:26 am
Code: Select all
#select(undef, undef, undef,0.006);
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Talking bout XFS1.2, right? Don't work what? You have error or same lower speed?
To speedup you can also try to change
to
in index.cgi
To speedup you can also try to change
Code: Select all
read($in_fh,$buf,4096)
Code: Select all
read($in_fh,$buf,8192)
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm