diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-10 21:08:23 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-10 21:08:23 +0200 |
commit | c4202563fb4210adf3eb94fbdb6f40e059b63e37 (patch) | |
tree | 93ffb329f394c9e7bac113f183aacba10c8d4680 /src/namestore/gnunet-service-namestore.c | |
parent | bb230d4d990db60513c1e8083b46c7b8e91489f5 (diff) | |
download | gnunet-c4202563fb4210adf3eb94fbdb6f40e059b63e37.tar.gz gnunet-c4202563fb4210adf3eb94fbdb6f40e059b63e37.zip |
watch for namestore not completing store operations, add auto-abort with warning plus statistics to detect
Diffstat (limited to 'src/namestore/gnunet-service-namestore.c')
-rw-r--r-- | src/namestore/gnunet-service-namestore.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index ffc76a911..6dedcd754 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c | |||
@@ -681,6 +681,10 @@ send_store_response (struct NamestoreClient *nc, | |||
681 | 681 | ||
682 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 682 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
683 | "Sending RECORD_STORE_RESPONSE message\n"); | 683 | "Sending RECORD_STORE_RESPONSE message\n"); |
684 | GNUNET_STATISTICS_update (statistics, | ||
685 | "Store requests completed", | ||
686 | 1, | ||
687 | GNUNET_NO); | ||
684 | env = GNUNET_MQ_msg (rcr_msg, | 688 | env = GNUNET_MQ_msg (rcr_msg, |
685 | GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE); | 689 | GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE); |
686 | rcr_msg->gns_header.r_id = htonl (rid); | 690 | rcr_msg->gns_header.r_id = htonl (rid); |
@@ -1308,6 +1312,10 @@ handle_record_store (void *cls, | |||
1308 | GNUNET_SERVICE_client_drop (nc->client); | 1312 | GNUNET_SERVICE_client_drop (nc->client); |
1309 | return; | 1313 | return; |
1310 | } | 1314 | } |
1315 | GNUNET_STATISTICS_update (statistics, | ||
1316 | "Well-formed store requests received", | ||
1317 | 1, | ||
1318 | GNUNET_NO); | ||
1311 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1319 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1312 | "Creating %u records for name `%s'\n", | 1320 | "Creating %u records for name `%s'\n", |
1313 | (unsigned int) rd_count, | 1321 | (unsigned int) rd_count, |