diff options
author | Julius Bünger <buenger@mytum.de> | 2018-08-24 07:58:47 +0200 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2018-08-24 07:58:47 +0200 |
commit | 19762ee38c596516abb811c727d80196679b79e0 (patch) | |
tree | 2d47cd431d672ba988eee2c4cdbd381e83c80505 /src | |
parent | ec3fa3ccab30ae825bae8f5c585c1604bef2b7bc (diff) | |
download | gnunet-19762ee38c596516abb811c727d80196679b79e0.tar.gz gnunet-19762ee38c596516abb811c727d80196679b79e0.zip |
Count number of unrequested pull replies with statistics
Diffstat (limited to 'src')
-rw-r--r-- | src/rps/gnunet-service-rps.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 7802b183b..5d0e60508 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c | |||
@@ -2361,6 +2361,7 @@ send_pull_reply (const struct GNUNET_PeerIdentity *peer_id, | |||
2361 | // TODO check with send intention: as send_channel is used/opened we indicate | 2361 | // TODO check with send intention: as send_channel is used/opened we indicate |
2362 | // a sending intention without intending it. | 2362 | // a sending intention without intending it. |
2363 | // -> clean peer afterwards? | 2363 | // -> clean peer afterwards? |
2364 | // -> use recv_channel? | ||
2364 | } | 2365 | } |
2365 | 2366 | ||
2366 | 2367 | ||
@@ -3118,6 +3119,10 @@ check_peer_pull_reply (void *cls, | |||
3118 | LOG (GNUNET_ERROR_TYPE_WARNING, | 3119 | LOG (GNUNET_ERROR_TYPE_WARNING, |
3119 | "Received a pull reply from a peer (%s) we didn't request one from!\n", | 3120 | "Received a pull reply from a peer (%s) we didn't request one from!\n", |
3120 | GNUNET_i2s (sender)); | 3121 | GNUNET_i2s (sender)); |
3122 | GNUNET_STATISTICS_update (stats, | ||
3123 | "# unrequested pull replies", | ||
3124 | 1, | ||
3125 | GNUNET_NO); | ||
3121 | GNUNET_break_op (0); | 3126 | GNUNET_break_op (0); |
3122 | return GNUNET_SYSERR; | 3127 | return GNUNET_SYSERR; |
3123 | } | 3128 | } |