diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-19 14:10:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-19 14:10:15 +0000 |
commit | 21a4795f1918e010a51b0d189fe01f77e1f5bbd6 (patch) | |
tree | 433e0566f6a4bdaf53e7de478ee261ef9f336047 /src/fs/gnunet-service-fs_cp.c | |
parent | 61e81163b05a44b3d0e72b4ef8c781f98b6c2c6c (diff) | |
download | gnunet-21a4795f1918e010a51b0d189fe01f77e1f5bbd6.tar.gz gnunet-21a4795f1918e010a51b0d189fe01f77e1f5bbd6.zip |
actually limit FS memory consumption by limiting how many requests we track from other peers (respective GSF-option had not been set; new code also inverts the meaning of the bit, so it does not have to be set for peers but rather is now set for clients to excempt them from the limitation)
Diffstat (limited to 'src/fs/gnunet-service-fs_cp.c')
-rw-r--r-- | src/fs/gnunet-service-fs_cp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c index 7560975db..968cdffcb 100644 --- a/src/fs/gnunet-service-fs_cp.c +++ b/src/fs/gnunet-service-fs_cp.c | |||
@@ -1231,7 +1231,7 @@ GSF_handle_p2p_query_ (const struct GNUNET_PeerIdentity *other, | |||
1231 | (0 != | 1231 | (0 != |
1232 | (bm & GET_MESSAGE_BIT_TRANSMIT_TO)) ? ((const struct GNUNET_PeerIdentity | 1232 | (bm & GET_MESSAGE_BIT_TRANSMIT_TO)) ? ((const struct GNUNET_PeerIdentity |
1233 | *) &opt[bits++]) : NULL; | 1233 | *) &opt[bits++]) : NULL; |
1234 | options = 0; | 1234 | options = GSF_PRO_DEFAULTS; |
1235 | spid = 0; | 1235 | spid = 0; |
1236 | if ((GNUNET_LOAD_get_load (cp->ppd.transmission_delay) > 3 * (1 + priority)) | 1236 | if ((GNUNET_LOAD_get_load (cp->ppd.transmission_delay) > 3 * (1 + priority)) |
1237 | || (GNUNET_LOAD_get_average (cp->ppd.transmission_delay) > | 1237 | || (GNUNET_LOAD_get_average (cp->ppd.transmission_delay) > |