filescope-devel Mailing List for FileScope
Brought to you by:
mzyzik
You can subscribe to this list here.
2005 |
Jan
|
Feb
(21) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: Shervin <She...@sh...> - 2005-02-23 06:55:31
|
Hi Here is the same patch, but for Gnutella 2. This is in CVS. Update please. Shervin Index: Sck.cs =================================================================== RCS file: /cvsroot/filescope/filescope/Core/Gnutella2/Sck.cs,v retrieving revision 1.2 diff -r1.2 Sck.cs 392,402c392,412 < if(e.Message.IndexOf("403") != -1 || e.Message.IndexOf("404") != -1 || e.Message.IndexOf("410") != -1) < { < if(!removedWebCacheThisSession) < { < lock(Stats.gnutella2WebCache) < { < for(int posgwc = 0; posgwc < Stats.gnutella2WebCache.Count; posgwc++) < if((string)Stats.gnutella2WebCache[posgwc] == this.address) < { < System.Diagnostics.Debug.WriteLine("gwc2 removed: " + this.address); < Stats.gnutella2WebCache.RemoveAt(posgwc); --- > // If any of these two situations happen then remove from webcache > // 1: HTTP Errors 403, 404 and 410 > // 2: Any other error and this is the first time in this session. > > bool remove = false; > > if (e.Message.IndexOf("403") != -1 || e.Message.IndexOf("404") != -1 || e.Message.IndexOf("410") != -1) > remove = true; > > lock(Stats.gnutella2WebCache) > { > if(!removedWebCacheThisSession || remove) > { > // remove it > for(int posgwc = 0; posgwc < Stats.gnutella2WebCache.Count; posgwc++) > if((string)Stats.gnutella2WebCache[posgwc] == this.address) > { > System.Diagnostics.Debug.WriteLine("gwc2 removed: " + this.address); > Stats.gnutella2WebCache.RemoveAt(posgwc); > > if (!remove) 404,406c414,416 < return; < } < } --- > > return; > } 408a419 > |
From: Shervin <She...@sh...> - 2005-02-23 06:52:37
|
Hi all My last patch did not resolve the problem correctly. Here is another patch that hopefully does a better job. The logic is like this: If any of these two situations happen then remove from webcache 1: HTTP Errors 403, 404 and 410 2: Any other error and this is the first time in this session. Also locking should happen before checking the removedWebCacheThisSession variable to avoid concurrency issues. This has been committed. Please update your source. Shervin Index: Sck.cs =================================================================== RCS file: /cvsroot/filescope/filescope/Core/Gnutella/Sck.cs,v retrieving revision 1.3 diff -r1.3 Sck.cs 274c274,282 < if(e.Message.IndexOf("403") != -1 || e.Message.IndexOf("404") != -1 || e.Message.IndexOf("410") != -1) --- > // If any of these two situations happen then remove from webcache > // 1: HTTP Errors 403, 404 and 410 > // 2: Any other error and this is the first time in this session. > bool remove = false; > > if (e.Message.IndexOf("403") != -1 || e.Message.IndexOf("404") != -1 || e.Message.IndexOf("410") != -1) > remove = true; > > lock(Stats.gnutellaWebCache) 276c284 < if(!removedWebCacheThisSession) --- > if(!removedWebCacheThisSession || remove) 278,285c286,293 < lock(Stats.gnutellaWebCache) < { < //remove it < for(int posgwc = 0; posgwc < Stats.gnutellaWebCache.Count; posgwc++) < if((string)Stats.gnutellaWebCache[posgwc] == this.address) < { < System.Diagnostics.Debug.WriteLine("gwc1 removed: " + this.address); < Stats.gnutellaWebCache.RemoveAt(posgwc); --- > // remove it > for(int posgwc = 0; posgwc < Stats.gnutellaWebCache.Count; posgwc++) > if((string)Stats.gnutellaWebCache[posgwc] == this.address) > { > System.Diagnostics.Debug.WriteLine("gwc1 removed: " + this.address); > Stats.gnutellaWebCache.RemoveAt(posgwc); > > if (!remove) 287,289c295,297 < return; < } < } --- > > return; > } 292,296c300 < else < { < System.Diagnostics.Debug.WriteLine("g1 wc get response error: " + e.Message); < System.Diagnostics.Debug.WriteLine(e.StackTrace); < } --- > |
From: Matt Z. <mz...@ny...> - 2005-02-23 03:39:55
|
Shervin, Good job! --Matt On Tue, Feb 22, 2005 at 01:59:12AM -0800, Shervin wrote: > Hi all > > This patch updates the list of gnutella 1 webcache servers that we were > using, since none of them were responding. > > This has been commited to CVS. > > Shervin > > > > Index: WizardDlg.cs > =================================================================== > RCS file: /cvsroot/filescope/filescope/SWF-UI/Dialogs/WizardDlg.cs,v > retrieving revision 1.2 > diff -r1.2 WizardDlg.cs > 745,801c745,761 > < //web caches > > < > Stats.gnutellaWebCache.Add("http://a.gnu.crysm.net/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://cfx.domainchen.de/gwebc/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://gwebcache.skysys.org/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://kjellman.com/gcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://serverbeest.mine.nu/heinjan/gwebcache/gca > che.php"); > > < > Stats.gnutellaWebCache.Add("http://webpages.charter.net/mlatin/gwebcache/gca > che.php"); > > < > Stats.gnutellaWebCache.Add("http://www.arne-nickel.de/gnucleus/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.cultiv8r.com/gcache/gcache.cfm"); > > < > Stats.gnutellaWebCache.Add("http://www.dors.de/gcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.geeknik.net/gnucache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.gnucleus.net/gcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.padar.com/gwebcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.puterdocs.com/gcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.sweeveworld.com/~tolkien/gnucache/gca > che.php"); > > < > Stats.gnutellaWebCache.Add("http://www.techdudez.com/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.wgops.com/gwebcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.x3k6a2.net/GnuCache_0.5.2/gcache.php" > ); > > < > Stats.gnutellaWebCache.Add("http://www.zero-g.net/gcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://andrewhitchcock.org/gnucache/index.php"); > > < > Stats.gnutellaWebCache.Add("http://suspiciousdisco.com/gnucache/gcache.php") > ; > > < > Stats.gnutellaWebCache.Add("http://www.apexo.de/gnucache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.frission.net/gcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.sven-herrmann.net/doetsch.info/gnucle > us/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.mfux.ch/GnuCache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://jh-webservice.de/gnucache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.tripadelic.com/gnucache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.johnellis.net/gcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://arras.sytes.net/gwebcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://inerciasensorial.com.br/gwebcache/gcache. > php"); > > < > Stats.gnutellaWebCache.Add("http://www.nuffsed.net/gnuc/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.php50.com/gwebcache/index.php"); > > < > Stats.gnutellaWebCache.Add("http://www.php50.com/godfella/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://gc.ibel.de/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.blar.de/gwebcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.blar.de/gnetcache/index.php"); > > < > Stats.gnutellaWebCache.Add("http://www.riverstyx.com/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://conny.cistron.de/gnutella/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.wordreserve.com/gnucache/gcache.php") > ; > > < > Stats.gnutellaWebCache.Add("http://yosoy.problematico.com/index.php"); > > < > Stats.gnutellaWebCache.Add("http://www.sermo.net/gnuwebcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://gnucache.l33t.ca/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.perser.org/gcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.cgamalaysia.org/gweb/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://contextcraft.com/gwebcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.nickcatalano.com/GNUCACHE/gcache.php" > ); > > < > Stats.gnutellaWebCache.Add("http://burneyfireems.org/111/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.likaos.com/gnucleus/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://gnutella-cache.no-ip.com/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.vertsync.com/gwebcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://zetafleet.com/gWebCache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.miamimicro.com/GWebCache/bequiet.asp" > ); > > < > Stats.gnutellaWebCache.Add("http://www.zetafleet.com/gWebCache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.php.ee/gcache/index.php"); > > < > Stats.gnutellaWebCache.Add("http://www.looten.net/gwebcache/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.stevesnexus.com/gcache.php"); > > < > Stats.gnutellaWebCache.Add("http://www.blackgate.net/gcache.php"); > > --- > > > > > // Gnutella 1 Web caches > > > > Stats.gnutellaWebCache.Add("http://crab2.dyndns.org:30002/gwc/"); > > > > Stats.gnutellaWebCache.Add("http://gcache.cloppy.net/"); > > > > Stats.gnutellaWebCache.Add("http://gwcrab.sarcastro.com:8001/"); > > > > Stats.gnutellaWebCache.Add("http://gwebcache.bearshare.net/GCAChe.PHP"); > > > > Stats.gnutellaWebCache.Add("http://gwc.nonexiste.net/"); > > > > Stats.gnutellaWebCache.Add("http://www.deepnetexplorer.co.uk/webcache/index. > asp"); > > > > Stats.gnutellaWebCache.Add("http://gwc.nonexiste.net/"); > > > > Stats.gnutellaWebCache.Add("http://gwc.jooz.net:8010/gwc/"); > > > > Stats.gnutellaWebCache.Add("http://pokerface.bishopston.net:3558/"); > > > > Stats.gnutellaWebCache.Add("http://crabcake.dynalias.net:9627/"); > > > > Stats.gnutellaWebCache.Add("http://crab1.dyndns.org:8002/gwc/"); > > > > Stats.gnutellaWebCache.Add("http://node00.hewson.cns.ufl.edu:8080/pwc.cgi"); > > > > Stats.gnutellaWebCache.Add("http://crab.bishopston.net:3558/"); > > > > > > // Gnutella 2 Web caches > > 807a768 > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Filescope-devel mailing list > Fil...@li... > https://lists.sourceforge.net/lists/listinfo/filescope-devel > > |
From: Matt Z. <mz...@ny...> - 2005-02-23 03:38:42
|
Shervin, Read my previous email; and try to emulate the same exact behavior for G1. Thanks. --Matt On Mon, Feb 21, 2005 at 08:26:03PM -0800, Shervin wrote: > Hi all > > Here is another patch resolving the same issue but on the gnutella1 side. > Basically it prevents more than one webcache being removed in one session. > > This patch is in CVS. > > Shervin > > > Index: Sck.cs > =================================================================== > RCS file: /cvsroot/filescope/filescope/Core/Gnutella/Sck.cs,v > retrieving revision 1.1.1.1 > diff -r1.1.1.1 Sck.cs > 93a94,96 > > // We use this flag to prevent too many webcaches to be > removed > > static bool removedWebCacheThisSession = false; > > > 268c271,274 > < if(e.Message.IndexOf("404") != -1 || > e.Message.IndexOf("403") != -1 || e.Message.ToLower().IndexOf("error") != -1 > || e.Message.ToLower().IndexOf("closed") != -1) > --- > > System.Diagnostics.Debug.WriteLine("g1 > webcache: " + e.Message); > > > System.Diagnostics.Debug.WriteLine(e.StackTrace); > > > > if(e.Message.IndexOf("403") != -1 || > e.Message.IndexOf("404") != -1 || e.Message.IndexOf("410") != -1) > 270c276 > < lock(Stats.gnutellaWebCache) > --- > > if(!removedWebCacheThisSession) > 272,279c278,289 > < //remove it > < for(int posgwc = 0; posgwc < > Stats.gnutellaWebCache.Count; posgwc++) > < > if((string)Stats.gnutellaWebCache[posgwc] == this.address) > < { > < > System.Diagnostics.Debug.WriteLine("gwc removed"); > < > Stats.gnutellaWebCache.RemoveAt(posgwc); > < return; > < } > --- > > lock(Stats.gnutellaWebCache) > > { > > //remove it > > for(int posgwc = 0; > posgwc < Stats.gnutellaWebCache.Count; posgwc++) > > > if((string)Stats.gnutellaWebCache[posgwc] == this.address) > > { > > > System.Diagnostics.Debug.WriteLine("gwc1 removed: " + this.address); > > > Stats.gnutellaWebCache.RemoveAt(posgwc); > > > removedWebCacheThisSession = true; > > > return; > > } > > } > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Filescope-devel mailing list > Fil...@li... > https://lists.sourceforge.net/lists/listinfo/filescope-devel > > |
From: Matt Z. <mz...@ny...> - 2005-02-23 03:37:37
|
Shervin, This is not an issue. It was correct before the patch; please revert to the previous instance whenever you can. Look at the code... if it's a 404 error, it HAS to be removed. "if(remove || !removedWebCacheToday)" was correct. --Matt On Mon, Feb 21, 2005 at 08:15:11PM -0800, Shervin wrote: > Hi all > > This patch resolves the issue of more than one Gnutella2 webcache being > deleted in one session. The line causing this problem was > (Core/Gnutella2/Sck.cs:391): > > if(remove || !removedWebCacheToday) > > It should have been > > if(remove && !removedWebCacheToday) > > I also got rid of the remove variable and added HTTP error 410: Gone to the > list. > > This patch is now in CVS. > > Shervin > > > Index: Sck.cs > =================================================================== > RCS file: /cvsroot/filescope/filescope/Core/Gnutella2/Sck.cs,v > retrieving revision 1.1.1.1 > diff -r1.1.1.1 Sck.cs > 103a104,106 > > // We use this flag to prevent too many webcaches to be > removed > > static bool removedWebCacheThisSession = false; > > > 388,391c391,392 > < bool remove = false; > < if(e.Message.IndexOf("404") != -1 || > e.Message.IndexOf("403") != -1) > < remove = true; > < if(remove || !removedWebCacheToday) > --- > > > > if(e.Message.IndexOf("403") != -1 || > e.Message.IndexOf("404") != -1 || e.Message.IndexOf("410") != -1) > 393c394 > < lock(Stats.gnutella2WebCache) > --- > > if(!removedWebCacheThisSession) > 395,402c396,406 > < for(int posgwc = 0; posgwc < > Stats.gnutella2WebCache.Count; posgwc++) > < > if((string)Stats.gnutella2WebCache[posgwc] == this.address) > < { > < > System.Diagnostics.Debug.WriteLine("gwc2 removed: " + this.address); > < > Stats.gnutella2WebCache.RemoveAt(posgwc); > < > removedWebCacheToday = true; > < return; > < } > --- > > > lock(Stats.gnutella2WebCache) > > { > > for(int posgwc = 0; > posgwc < Stats.gnutella2WebCache.Count; posgwc++) > > > if((string)Stats.gnutella2WebCache[posgwc] == this.address) > > { > > > System.Diagnostics.Debug.WriteLine("gwc2 removed: " + this.address); > > > Stats.gnutella2WebCache.RemoveAt(posgwc); > > > removedWebCacheThisSession = true; > > > return; > > } > > } > 409,411d412 > < //we use this flag to prevent too many webcaches to be > removed > < static bool removedWebCacheToday = false; > < > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Filescope-devel mailing list > Fil...@li... > https://lists.sourceforge.net/lists/listinfo/filescope-devel > > |
From: Shervin <She...@sh...> - 2005-02-22 10:04:30
|
Hi This patch adds the client info ("FSCP" + Version) to the URL when getting the host list from webcaches, since some webcaches rejected us because they do not respond to unknown clients. This has been committed into CVS. Shervin Index: Sck.cs =================================================================== RCS file: /cvsroot/filescope/filescope/Core/Gnutella/Sck.cs,v retrieving revision 1.2 diff -r1.2 Sck.cs 230c230 < httpRequest = (HttpWebRequest)WebRequest.Create(address + "?hostfile=1"); --- > httpRequest = (HttpWebRequest)WebRequest.Create(address + "?hostfile=1&client=FSCP" + Stats.version.Substring(0, 3)); |
From: Shervin <She...@sh...> - 2005-02-22 09:19:11
|
Hi all This patch resolves the issue of more than one Gnutella2 webcache being deleted in one session. The line causing this problem was (Core/Gnutella2/Sck.cs:391): if(remove || !removedWebCacheToday) It should have been if(remove && !removedWebCacheToday) I also got rid of the remove variable and added HTTP error 410: Gone to the list. This patch is now in CVS. Shervin Index: Sck.cs =================================================================== RCS file: /cvsroot/filescope/filescope/Core/Gnutella2/Sck.cs,v retrieving revision 1.1.1.1 diff -r1.1.1.1 Sck.cs 103a104,106 > // We use this flag to prevent too many webcaches to be removed > static bool removedWebCacheThisSession = false; > 388,391c391,392 < bool remove = false; < if(e.Message.IndexOf("404") != -1 || e.Message.IndexOf("403") != -1) < remove = true; < if(remove || !removedWebCacheToday) --- > > if(e.Message.IndexOf("403") != -1 || e.Message.IndexOf("404") != -1 || e.Message.IndexOf("410") != -1) 393c394 < lock(Stats.gnutella2WebCache) --- > if(!removedWebCacheThisSession) 395,402c396,406 < for(int posgwc = 0; posgwc < Stats.gnutella2WebCache.Count; posgwc++) < if((string)Stats.gnutella2WebCache[posgwc] == this.address) < { < System.Diagnostics.Debug.WriteLine("gwc2 removed: " + this.address); < Stats.gnutella2WebCache.RemoveAt(posgwc); < removedWebCacheToday = true; < return; < } --- > lock(Stats.gnutella2WebCache) > { > for(int posgwc = 0; posgwc < Stats.gnutella2WebCache.Count; posgwc++) > if((string)Stats.gnutella2WebCache[posgwc] == this.address) > { > System.Diagnostics.Debug.WriteLine("gwc2 removed: " + this.address); > Stats.gnutella2WebCache.RemoveAt(posgwc); > removedWebCacheThisSession = true; > return; > } > } 409,411d412 < //we use this flag to prevent too many webcaches to be removed < static bool removedWebCacheToday = false; < |
From: Shervin <She...@sh...> - 2005-02-22 08:32:06
|
This did not get to the mailing list so I am resending it. Hi all This patch resolves the issue of more than one Gnutella2 webcache being deleted in one session. The line causing this problem was (Core/Gnutella2/Sck.cs:391): if(remove || !removedWebCacheToday) It should have been if(remove && !removedWebCacheToday) I also got rid of the remove variable and added HTTP error 410: Gone to the list. This patch is now in CVS. Shervin Index: Sck.cs =================================================================== RCS file: /cvsroot/filescope/filescope/Core/Gnutella2/Sck.cs,v retrieving revision 1.1.1.1 diff -r1.1.1.1 Sck.cs 103a104,106 > // We use this flag to prevent too many webcaches to be removed > static bool removedWebCacheThisSession = false; > 388,391c391,392 < bool remove = false; < if(e.Message.IndexOf("404") != -1 || e.Message.IndexOf("403") != -1) < remove = true; < if(remove || !removedWebCacheToday) --- > > if(e.Message.IndexOf("403") != -1 || e.Message.IndexOf("404") != > -1 || e.Message.IndexOf("410") != -1) 393c394 < lock(Stats.gnutella2WebCache) --- > if(!removedWebCacheThisSession) 395,402c396,406 < for(int posgwc = 0; posgwc < Stats.gnutella2WebCache.Count; posgwc++) < if((string)Stats.gnutella2WebCache[posgwc] == this.address) < { < System.Diagnostics.Debug.WriteLine("gwc2 removed: " + this.address); < Stats.gnutella2WebCache.RemoveAt(posgwc); < removedWebCacheToday = true; < return; < } --- > lock(Stats.gnutella2WebCache) > { > for(int posgwc = 0; posgwc < Stats.gnutella2WebCache.Count; posgwc++) > if((string)Stats.gnutella2WebCache[posgwc] == this.address) > { > System.Diagnostics.Debug.WriteLine("gwc2 removed: " + this.address); > Stats.gnutella2WebCache.RemoveAt(posgwc); > removedWebCacheThisSession = true; > return; > } > } 409,411d412 < //we use this flag to prevent too many webcaches to be removed < static bool removedWebCacheToday = false; < |
From: Shervin <She...@sh...> - 2005-02-22 07:32:03
|
Hi all Here is another patch resolving the same issue but on the gnutella1 side. Basically it prevents more than one webcache being removed in one session. This patch is in CVS. Shervin Index: Sck.cs =================================================================== RCS file: /cvsroot/filescope/filescope/Core/Gnutella/Sck.cs,v retrieving revision 1.1.1.1 diff -r1.1.1.1 Sck.cs 93a94,96 > // We use this flag to prevent too many webcaches to be removed > static bool removedWebCacheThisSession = false; > 268c271,274 < if(e.Message.IndexOf("404") != -1 || e.Message.IndexOf("403") != -1 || e.Message.ToLower().IndexOf("error") != -1 || e.Message.ToLower().IndexOf("closed") != -1) --- > System.Diagnostics.Debug.WriteLine("g1 webcache: " + e.Message); > System.Diagnostics.Debug.WriteLine(e.StackTrace); > > if(e.Message.IndexOf("403") != -1 || e.Message.IndexOf("404") != -1 || e.Message.IndexOf("410") != -1) 270c276 < lock(Stats.gnutellaWebCache) --- > if(!removedWebCacheThisSession) 272,279c278,289 < //remove it < for(int posgwc = 0; posgwc < Stats.gnutellaWebCache.Count; posgwc++) < if((string)Stats.gnutellaWebCache[posgwc] == this.address) < { < System.Diagnostics.Debug.WriteLine("gwc removed"); < Stats.gnutellaWebCache.RemoveAt(posgwc); < return; < } --- > lock(Stats.gnutellaWebCache) > { > //remove it > for(int posgwc = 0; posgwc < Stats.gnutellaWebCache.Count; posgwc++) > if((string)Stats.gnutellaWebCache[posgwc] == this.address) > { > System.Diagnostics.Debug.WriteLine("gwc1 removed: " + this.address); > Stats.gnutellaWebCache.RemoveAt(posgwc); > removedWebCacheThisSession = true; > return; > } > } |
From: Matt Z. <mz...@ny...> - 2005-02-21 15:06:13
|
All, I replied to Shervin but I forgot to send it to the list. So here it is: --Matt ----- Forwarded message from Matt Zyzik <mz...@ny...> ----- Date: Sun, 20 Feb 2005 22:24:07 -0500 From: Matt Zyzik <mz...@ny...> To: Shervin <She...@sh...> Subject: Re: [Filescope-devel] Gnutella webcache problem. In-Reply-To: <0IC3004F1LWTI4@l-daemon> User-Agent: Mutt/1.5.6i Shervin, Great patch. Not even necessary on the Gnutella2 side. I guess I just forgot for G1. As for the webCache issue; again, it's something I forgot on the Gnutella1 side. Take a look, Shervin, if you can, at the way Gnutella2 removes servers (Core/Gnutella2/Sck.cs line 389). Notice how it cannot remove more than one webCache per session. I think the best idea is that we just copy the same behavior. This way the format of the *.fscp files doesn't have to change, and the fix would be much easier. The subnet scanning idea is maybe interesting; however, no other client does it; and it would be bad for the network because the decentralized model favors interweaving among hosts in a distributed (rather than grouping) manner. Also, many ISPs dislike it when people scan subnets for anything. At this point, such enhancements are really not needed. Trust me when I say that making this program work solidly without bugs or issues is the crucial priority for now (especially Gnutella2). Anyone's input is appreciated. --Matt On Fri, Feb 18, 2005 at 12:21:57AM -0800, Shervin wrote: > Hi all > > When you first run FileScope, it creates a Web Cache within the wizard > process (SWF-UI\Dialogs\WizardDlg.cs line 746) and then saves it to the file > "webcache.fscp". > > After this every time that you load FileScope, this file gets loaded and > these servers are used to get a list of possible hosts to connect to. > > Now the problem is that, FileScope removes a host from this list if it can > not connect to it (Core\Gnutella\Sck.cs line 268)and this list is written > back to the file every time we close FileScope (Core\StartApp.cs line 123). > In my case when I tried to connect to Gnutella all the servers returned some > kind of an error! So all of them got removed. Now when I closed and reopened > FileScope there were no more servers to even try to connect to! > > I don't think we want to remove any of these servers from the list, even if > they are not responding. What I suggest we should do, is to have some kind > of a priority system or a grading system for the web caches. > > For example we will have grades from 0 to 20 (0 being best) and they all > start with 5. Now every time that we fail to connect to them their grade > goes up by 1 and every time we are successful their grade goes down by 3. > If they reach 20 they get deleted. > > Now when we are connecting we give the priority to the ones that have the > lowest grade. > > Also we must have a subnet scanning system to try to find a host within that > user's subnet. After all you would want to be connected to someone close to > you anyways. Right now priority is with the cached hosts and then cached web > servers. I think it should be cached hosts, subnet scan and then web cache. > > Let me know what you guys think. > > Here is a patch for now to avoid FileScope crashing when there are no more > servers left. I have committed this patch to CVS. > > Shervin > > > Index: ConnectionManager.cs > =================================================================== > RCS file: /cvsroot/filescope/filescope/Core/Gnutella/ConnectionManager.cs,v > retrieving revision 1.1.1.1 > diff -r1.1.1.1 ConnectionManager.cs > 265a266,270 > > if(Stats.gnutellaWebCache.Count == > 0) > > > { > > > > System.Diagnostics.Debug.WriteLine("no more webcache servers"); > > > return; > > > } > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Filescope-devel mailing list > Fil...@li... > https://lists.sourceforge.net/lists/listinfo/filescope-devel > > ----- End forwarded message ----- |
From: Shervin <She...@sh...> - 2005-02-18 08:23:43
|
Hi all When you first run FileScope, it creates a Web Cache within the wizard process (SWF-UI\Dialogs\WizardDlg.cs line 746) and then saves it to the file "webcache.fscp". After this every time that you load FileScope, this file gets loaded and these servers are used to get a list of possible hosts to connect to. Now the problem is that, FileScope removes a host from this list if it can not connect to it (Core\Gnutella\Sck.cs line 268)and this list is written back to the file every time we close FileScope (Core\StartApp.cs line 123). In my case when I tried to connect to Gnutella all the servers returned some kind of an error! So all of them got removed. Now when I closed and reopened FileScope there were no more servers to even try to connect to! I don't think we want to remove any of these servers from the list, even if they are not responding. What I suggest we should do, is to have some kind of a priority system or a grading system for the web caches. For example we will have grades from 0 to 20 (0 being best) and they all start with 5. Now every time that we fail to connect to them their grade goes up by 1 and every time we are successful their grade goes down by 3. If they reach 20 they get deleted. Now when we are connecting we give the priority to the ones that have the lowest grade. Also we must have a subnet scanning system to try to find a host within that user's subnet. After all you would want to be connected to someone close to you anyways. Right now priority is with the cached hosts and then cached web servers. I think it should be cached hosts, subnet scan and then web cache. Let me know what you guys think. Here is a patch for now to avoid FileScope crashing when there are no more servers left. I have committed this patch to CVS. Shervin Index: ConnectionManager.cs =================================================================== RCS file: /cvsroot/filescope/filescope/Core/Gnutella/ConnectionManager.cs,v retrieving revision 1.1.1.1 diff -r1.1.1.1 ConnectionManager.cs 265a266,270 > if(Stats.gnutellaWebCache.Count == 0) > { > System.Diagnostics.Debug.WriteLine("no more webcache servers"); > return; > } |
From: Shervin <She...@sh...> - 2005-02-18 07:07:18
|
This patch allows the user to quit the setup wizard. This wizard is only shown if this is the first time that user is starting FileScope. With this patch, FileScope simply asks the user if they want to quit or not when they click on the X at the top right corner of the wizard dialog, and if they say yes, it will exit the application. This patch has been committed into CVS. Shervin cvs diff WizardDlg.cs (in directory D:\CVS\filescope\SWF-UI\Dialogs\) Index: WizardDlg.cs =================================================================== RCS file: /cvsroot/filescope/filescope/SWF-UI/Dialogs/WizardDlg.cs,v retrieving revision 1.1.1.1 diff -r1.1.1.1 WizardDlg.cs 69a70,71 > private bool bWizardEnded = false; > 814c816 < closingTime = true; --- > bWizardEnded = true; 818,819d819 < bool closingTime = false; < 822,824c822,830 < //can't close the wizard < if(!closingTime) < e.Cancel = true; --- > // Exit only if the wizard has ended. Otherwise ask the user. > if(!bWizardEnded) > { > // Ask the user if they want to exit and only exit if they said yes. > if (MessageBox.Show("Are you sure you want to quit the setup wizard?", "Quit", MessageBoxButtons.YesNo) == DialogResult.Yes) > Application.Exit(); > else > e.Cancel = true; > } |
From: Rick A. <bab...@ya...> - 2005-02-16 16:41:49
|
Hey everybody! My name is Rick Acquistapace. I am from California...Silicon Valley. I currently work as an automation developer for NVIDIA in the WHQL lab. I automate manual tasks for the rest of the lab in C#, ASP.NET, VB, WinBatch, and any other language that I need to use. :) Even though I've been using C# now for a year or so I'm not that familiar with advanced concepts. Most of my programming in the past has been with VB and it's been small utilities here and there that do a specific purpose. I have yet to work on a big project that requires things like multiple threads, delegates, interfaces, etc. I'm looking forward to learning all about them. I'm also a big fan of open source. I've used sites like www.planetsourcecode.com and www.codeproject.com to learn new ways of doing things and I'm looking forward to finally giving back to the community. So far I've been just looking at the code trying to familiarize myself with it and I've made a couple of changes. I lowered the G2 Hub connection from 3 to 2. According to some of the devs at forums.shareaza.com you only really need 1 connection but 2 is recommended. I still need to give the user the options of selecting if they want 1 or 2 hubs. I've also updated the Library to allow you to choose if you want a shared folder to be recursive or not. I don't know how much I'm going to be able to help with this project, I have a wife and 2 small kids that take up a lot of my time :), but I hope to help out by learning the G2 and the G1 protocol a lot better. I've followed both protocols since the beginning, but there are still a few things I need research a little more. I can also help with GUI stuff and ideas. :) I've never done any work with CVS and SourceForge so I'm going to look around the site today and learn how to check code in and out. I'll try and get my fixed checked in in the next couple of days. Rick --- Shervin <She...@sh...> wrote: > Hi all > > My name is Shervin Sotoodeh. I am originally from > Iran and currently living > in Vancouver, Canada. I have a bachelor's degree in > computer graphics from > Simon Fraser University. I have been working as a > .NET programmer for 3 > years now. > > I have always been a big fan of open source software > and always wanted to > contribute to them. Before joining this project most > of my contributions > have been in the form of bug reports and patches. > > I am very excited about FileScope and can't wait to > get it polished and > release 1.0. I will be working on the installer and > some bug fixes for now, > until I find a part of the code that I like. > > My first contribution to this project is the > installer which has been added > to CVS ("Installer" module). You can read the readme > file to get it > compiled. > > I would like to ask every developer to introduce > themselves and say which > part of this project they will be working on. > > Thank you > Shervin > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT > Products from real users. > Discover which products truly live up to the hype. > Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Filescope-devel mailing list > Fil...@li... > https://lists.sourceforge.net/lists/listinfo/filescope-devel > |
From: Felipe A. L. <fel...@gm...> - 2005-02-16 10:55:14
|
I saw just a few messages in the archive, so I'm sending a test mail. Forgive me ;-). Felipe. --=20 "Quem excele em empregar a for=E7a militar subjulga os ex=E9rcitos dos outr= os povos sem travar batalha, toma cidades fortificadas dos outros povos sem as atacar e destr=F3i os estados dos outros povos sem lutas prolongadas. Deve lutar sob o C=E9u com o prop=F3sito primordial da 'preserva=E7=E3o'. Desse = modo suas armas n=E3o se embotar=E3o, e os ganhos poder=E3o ser preservados. Essa =E9= a=20 estrat=E9gia para planejar ofensivas." -- Sun Tzu |
From: Matt Z. <mz...@ny...> - 2005-02-16 02:41:20
|
Hello All, My name is Matt Zyzik. I'm studying Computer Science as an undergraduate at New York University. I started FileScope in 2002 and my progress on it has been severely lacking as time went on; especially when I started working (CitiGroup). Thankfully, the code is practically done. All that remains is testing and tweaking (mostly for Gnutella2). I will still obviously work on this project whenever I have time and most questions at this point should probably go to me. I urge everyone to ask me for CVS access if you're working on FileScope. This way you can update the code for everyone to see. Have fun. Thanks, Matt On Tue, Feb 15, 2005 at 04:13:42PM -0800, Shervin wrote: > Hi all > > My name is Shervin Sotoodeh. I am originally from Iran and currently living > in Vancouver, Canada. I have a bachelor's degree in computer graphics from > Simon Fraser University. I have been working as a .NET programmer for 3 > years now. > > I have always been a big fan of open source software and always wanted to > contribute to them. Before joining this project most of my contributions > have been in the form of bug reports and patches. > > I am very excited about FileScope and can't wait to get it polished and > release 1.0. I will be working on the installer and some bug fixes for now, > until I find a part of the code that I like. > > My first contribution to this project is the installer which has been added > to CVS ("Installer" module). You can read the readme file to get it > compiled. > > I would like to ask every developer to introduce themselves and say which > part of this project they will be working on. > > Thank you > Shervin > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Filescope-devel mailing list > Fil...@li... > https://lists.sourceforge.net/lists/listinfo/filescope-devel > > |
From: Shervin <She...@sh...> - 2005-02-16 00:15:14
|
Hi all My name is Shervin Sotoodeh. I am originally from Iran and currently living in Vancouver, Canada. I have a bachelor's degree in computer graphics from Simon Fraser University. I have been working as a .NET programmer for 3 years now. I have always been a big fan of open source software and always wanted to contribute to them. Before joining this project most of my contributions have been in the form of bug reports and patches. I am very excited about FileScope and can't wait to get it polished and release 1.0. I will be working on the installer and some bug fixes for now, until I find a part of the code that I like. My first contribution to this project is the installer which has been added to CVS ("Installer" module). You can read the readme file to get it compiled. I would like to ask every developer to introduce themselves and say which part of this project they will be working on. Thank you Shervin |
From: Matt Z. <mz...@ny...> - 2005-02-11 01:46:52
|
All, So far, work on FileScope has amounted to numerous bug fixes, a library UI enhancement, and a very elaborate installer script for the NSIS installer. I'm very impressed, but changes need to go into the CVS repository and there's no reason to go through me to get it done. Please email me if you're ready/wanting FileScope CVS access. When you have it, you can just commit changes and everyone can see what you've done. I'm guessing the typical procedure should be to commit your changes to CVS and then announce what those changes are on this mailing list. Thanks. --Matt |
From: Matt Z. <mz...@ny...> - 2005-02-08 06:13:58
|
this is a test |
From: <su...@bu...> - 2005-02-08 05:32:46
|
test |
From: Matt Z. <mz...@ny...> - 2005-02-08 05:21:29
|
another test |