diff options
author | Julius Bünger <buenger@mytum.de> | 2019-02-25 20:36:44 +0100 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2019-02-25 20:36:44 +0100 |
commit | adbb529b74ba2cc63880c11522c09b50fef34823 (patch) | |
tree | 7536ea2eef0c2c914d4d021a28dc82bb73977339 /src/rps/rps-sampler_common.c | |
parent | 88aa8d7bb013d1b596a3da2c7162fa55e2fc03a4 (diff) | |
download | gnunet-adbb529b74ba2cc63880c11522c09b50fef34823.tar.gz gnunet-adbb529b74ba2cc63880c11522c09b50fef34823.zip |
RPS sampler: An id might be removed while a request is still pending
Diffstat (limited to 'src/rps/rps-sampler_common.c')
-rw-r--r-- | src/rps/rps-sampler_common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rps/rps-sampler_common.c b/src/rps/rps-sampler_common.c index e34cdd67b..2b0569c61 100644 --- a/src/rps/rps-sampler_common.c +++ b/src/rps/rps-sampler_common.c | |||
@@ -215,6 +215,12 @@ RPS_sampler_update (struct RPS_Sampler *sampler, | |||
215 | * | 215 | * |
216 | * Used to get rid of a PeerID. | 216 | * Used to get rid of a PeerID. |
217 | * | 217 | * |
218 | * FIXME: This should also consider currently pending requests | ||
219 | * (Pending requests already collect peerids. As long as not all | ||
220 | * requested IDs have been collected, they are kept. | ||
221 | * Ideally, the @p id should be removed from all pending requests. This | ||
222 | * seems quite complicated.) | ||
223 | * | ||
218 | * @param sampler the sampler to reinitialise a sampler element in. | 224 | * @param sampler the sampler to reinitialise a sampler element in. |
219 | * @param id the id of the sampler elements to update. | 225 | * @param id the id of the sampler elements to update. |
220 | */ | 226 | */ |