[wpkg-users] [Bug 91] Do not execute wpkg.js on a slow network connection

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Fri Dec 7 23:44:40 CET 2007


http://bugzilla.wpkg.org/show_bug.cgi?id=91





--- Comment #7 from Rainer Meier <skybeam at users.sourceforge.net>  2007-12-07 23:44:36 ---
I know that such a ping-based link-speed detectioncan be quite "fuzzy". However
it would be enough to distinguish between a slow modem-based connection and a
LAN connection.

I also investigated some more and I was not able to find a built-in method
which is fully reliable. One possibility is to use WMI where there are several
sources of information available like the link speed. However this just gives
an indicator. If you're on a DSL line using your internal Gigabit-LAN
controller to connect to the Router it would also show you a speed of 1Gbps.

But probably this is already enough - just to make sure WPKG is not downloaded
and run from the server if there is NO LAN connection available at all (so we
are for sure on a dial-up connection.

On DSL even downloading a full office package in the background is feasible.

Of course I also think that the best method to detect the network speed is to
download a file large enough to allow average connection speed calculation.
Unfortunately downloading >1MB just for link-speed detection is something you
might want to avoid on GPRS connections where you're charged for traffic.


In most cases I think even the download of the wpkg.js main script could give
an indication already but in some cases with high RTT this might be inaccurate.

So at the moment I also don't know exactly how to implement a safe way of
link-speed detection. Probably I will just try to write a script which checks
the link speeds on all connected interfaces and then assume the user operates
on the fastest one. In case there is a really slow one it could exit with a
non-zero value.


-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

-------------------------------------------------------------------------



just about anything Open Source.
http://sourceforge.net/services/buy/index.php
-------------------------------------------------------
Easy Software Deployment >> http://wpkg.org
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users



More information about the wpkg-users mailing list