fix
authorChristian Grothoff <christian@grothoff.org>
Sat, 20 Feb 2010 14:44:23 +0000 (14:44 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 20 Feb 2010 14:44:23 +0000 (14:44 +0000)
src/fs/gnunet-service-fs.c
src/fs/test_fs_lib_data.conf

index da7d6fb0a5d63f622b396a79864c0bcb96dea12b..b76542767c1cb3d4b240d544f6caeb21fc4b9baa 100644 (file)
@@ -1665,6 +1665,11 @@ process_reply (void *cls,
       /* only possible reply, stop requesting! */
       while (NULL != pr->pending_head)
        destroy_pending_message_list_entry (pr->pending_head);
+      if (pr->drq != NULL)
+       {
+         GNUNET_FS_drq_get_cancel (pr->drq);
+         pr->drq = NULL;
+       }
       GNUNET_break (GNUNET_YES ==
                    GNUNET_CONTAINER_multihashmap_remove (query_request_map,
                                                          key,
@@ -1985,7 +1990,8 @@ process_local_reply (void *cls,
   process_reply (&prq, key, pr);
   
   if ( (GNUNET_YES == test_load_too_high()) ||
-       (pr->results_found > 5 + 2 * pr->priority) )
+       (pr->results_found > 5 + 2 * pr->priority) ||
+       (type == GNUNET_DATASTORE_BLOCKTYPE_DBLOCK) )
     {
       GNUNET_FS_drq_get_next (GNUNET_NO);
       return;
index 43fea398e877700502855da0e792708344d48515..693342be0f0aad9b7b16d715a0abf30fbfd0825d 100644 (file)
@@ -44,8 +44,9 @@ HOSTNAME = localhost
 PORT = 43471
 HOSTNAME = localhost
 DEBUG = YES
-PREFIX = valgrind --tool=memcheck --leak-check=yes
+#PREFIX = valgrind --tool=memcheck --leak-check=yes
 #BINARY = /home/grothoff/bin/gnunet-service-fs
+#PREFIX = xterm -e gdb -x cmd --args 
 
 [testing]
 WEAKRANDOM = YES