gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r6604 - in GNUnet/src: applications/fs/gap util/network


From: gnunet
Subject: [GNUnet-SVN] r6604 - in GNUnet/src: applications/fs/gap util/network
Date: Sat, 22 Mar 2008 20:57:59 -0600 (MDT)

Author: grothoff
Date: 2008-03-22 20:57:58 -0600 (Sat, 22 Mar 2008)
New Revision: 6604

Modified:
   GNUnet/src/applications/fs/gap/fs.c
   GNUnet/src/util/network/select.c
Log:
fixes

Modified: GNUnet/src/applications/fs/gap/fs.c
===================================================================
--- GNUnet/src/applications/fs/gap/fs.c 2008-03-23 01:30:07 UTC (rev 6603)
+++ GNUnet/src/applications/fs/gap/fs.c 2008-03-23 02:57:58 UTC (rev 6604)
@@ -449,8 +449,10 @@
                                     GNUNET_ECRS_BLOCKTYPE_DATA ? GNUNET_NO :
                                     GNUNET_YES);
   GNUNET_free (msg);
+  if (ret == GNUNET_NO)
+    cls->have_more = GNUNET_YES; /* switch to async processing */
   if ((type == GNUNET_ECRS_BLOCKTYPE_DATA) || (ret != GNUNET_OK))
-    return GNUNET_SYSERR;       /* unique response or client can take no more 
*/
+    return GNUNET_SYSERR;       /* unique response or client can take no more 
*/    
   rl = GNUNET_malloc (sizeof (struct ResponseList));
   GNUNET_hash (dblock, size, &rl->hash);
   rl->next = cls->seen;

Modified: GNUnet/src/util/network/select.c
===================================================================
--- GNUnet/src/util/network/select.c    2008-03-23 01:30:07 UTC (rev 6603)
+++ GNUnet/src/util/network/select.c    2008-03-23 02:57:58 UTC (rev 6604)
@@ -1044,7 +1044,7 @@
         (session->wapos - session->wspos + len > sh->memory_quota)) ||
        ((sh->memory_quota == 0) &&
         (session->wapos - session->wspos + len >
-         GNUNET_MAX_GNUNET_malloc_CHECKED / 2))))
+         GNUNET_MAX_GNUNET_malloc_CHECKED / 4))))
     {
       /* not enough free space, not allowed to grow that much */
       GNUNET_mutex_unlock (sh->lock);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]