On 10 Mar 2007, [EMAIL PROTECTED] wrote:

> r13037, GTK1, everything enabled except remote shell

> I copied the "config_gnet" and "config_gui" from a backup to the
> .gtk-gnutella directory in the new install.  When I run
> gtk-gnutella, I get the following.  It seems to occur about 5-10
> seconds after starting the program:

> Assertion failure (hcache.c:1169) "available"


> #3  0x08211aa8 in assertion_failure 

> #4  0x080afcda in hcache_get_caught (type=HOST_ANY, addr=0xbfadb8a0,
    port=0xbfadb89c) at hcache.c:1169

> #5  0x080c3d9d in node_slow_timer (now=1173538164) at nodes.c:752

node_slow_timer() is calling hcache_get_caught() and the host caches
are empty.  This will fix the problem on startup.

--- core/nodes.c        (revision 13034)
+++ core/nodes.c        (working copy)
@@ -748,10 +748,10 @@
                        host_addr_t addr;
                        guint16 port;

-                       last_ping = now;
-                       if (hcache_get_caught(HOST_ANY, &addr, &port)) {
+                       if (last_ping && hcache_get_caught(HOST_ANY, &addr, 
&port)) {
                                udp_send_ping(addr, port, TRUE);
                        }
+                       last_ping = now;
                }
        }

However, I think that a problem will still exist when someone clears
the host cache via the GUI (albeit rarely).

fwiw,
Bill Pringlemeir.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to