fixes
authorChristian Grothoff <christian@grothoff.org>
Sat, 27 Feb 2010 10:52:09 +0000 (10:52 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 27 Feb 2010 10:52:09 +0000 (10:52 +0000)
src/fs/fs_test_lib_data.conf
src/fs/gnunet-service-fs.c
src/fs/test_fs_download_data.conf

index d62ee8c983b86b3db080ac3caaa9203b6cce9735..23cb948c440d92a95aaad3d3389473df0e3f21ee 100644 (file)
@@ -12,7 +12,7 @@ HOSTNAME = localhost
 [transport]
 PORT = 43465
 PLUGINS = tcp
-DEBUG = YES
+#DEBUG = YES
 
 [arm]
 PORT = 43466
@@ -40,7 +40,7 @@ PORT = 43470
 HOSTNAME = localhost
 #TOTAL_QUOTA_IN = 3932160
 #TOTAL_QUOTA_OUT = 3932160
-DEBUG = YES
+#DEBUG = YES
 
 [fs]
 PORT = 43471
index 6fa18a4c325d4a86f6881aed3a93334f7849df21..07852b4ba292454fc259e5ef9c3d558f5d34810c 100644 (file)
@@ -618,7 +618,6 @@ destroy_pending_message (struct PendingMessage *pm,
 }
 
 
-
 /**
  * We're done processing a particular request.
  * Free all associated resources.
@@ -1258,7 +1257,7 @@ target_reservation_cb (void *cls,
     {
       if (pr->cp == NULL)
        {
-#if DEBUG_FS
+#if DEBUG_FS > 1
          GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                      "Failed to reserve bandwidth for reply (got %d/%u bytes only)!\n",
                      amount,
@@ -1712,7 +1711,10 @@ process_reply (void *cls,
        destroy_pending_message_list_entry (pr->pending_head);
       if (pr->drq != NULL)
        {
-         GNUNET_FS_drq_get_cancel (pr->drq);
+         if (pr->client_request_list != NULL)
+           GNUNET_SERVER_receive_done (pr->client_request_list->client_list->client, 
+                                       GNUNET_YES);
+         GNUNET_FS_drq_get_cancel (pr->drq);
          pr->drq = NULL;
        }
       do_remove = GNUNET_YES;
@@ -2048,7 +2050,7 @@ process_local_reply (void *cls,
           (pr->results_found > 5 + 2 * pr->priority) ) ) ||
        (type == GNUNET_DATASTORE_BLOCKTYPE_DBLOCK) ) 
     {
-#if DEBUG_FS
+#if DEBUG_FS > 2
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                  "Unique reply found or load too high, done with request\n");
 #endif
@@ -2433,7 +2435,7 @@ handle_start_search (void *cls,
   uint16_t msize;
   unsigned int sc;
   uint32_t type;
-  
+
   msize = ntohs (message->size);
   if ( (msize < sizeof (struct SearchMessage)) ||
        (0 != (msize - sizeof (struct SearchMessage)) % sizeof (GNUNET_HashCode)) )
index d61eaca379970b3a0c444727f5c6286d985acb01..6c14de879f977ffc1c3ae833a09c923fc0dd10b1 100644 (file)
@@ -19,7 +19,7 @@ HOSTNAME = localhost
 DEFAULTSERVICES = resolver datastore transport core fs
 
 [datastore]
-#DEBUG = YES
+DEBUG = YES
 
 [statistics]
 PORT = 42467