aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_pr.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-11-25 12:32:59 +0000
committerChristian Grothoff <christian@grothoff.org>2012-11-25 12:32:59 +0000
commitc633b8eb2291d0327cfd5960b5f31d0df7525f07 (patch)
tree4cf74b0fe4e483191d2ee06deb1902d118223dd3 /src/fs/gnunet-service-fs_pr.c
parentaa3fe66f2aab8098491304d7083426c579c2cd4d (diff)
-enable mesh, as stream needs it, activate testcase
Diffstat (limited to 'src/fs/gnunet-service-fs_pr.c')
-rw-r--r--src/fs/gnunet-service-fs_pr.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs_pr.c b/src/fs/gnunet-service-fs_pr.c
index 6acc0e2bf1..ecd8418089 100644
--- a/src/fs/gnunet-service-fs_pr.c
+++ b/src/fs/gnunet-service-fs_pr.c
@@ -1175,11 +1175,23 @@ stream_reply_proc (void *cls,
struct GNUNET_HashCode query;
pr->stream_request = NULL;
+ if (GNUNET_BLOCK_TYPE_ANY == type)
+ {
+ GNUNET_break (NULL == data);
+ GNUNET_break (0 == data_size);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Error retrieiving block via stream\n");
+ /* FIXME: should re-try a few times... */
+ return;
+ }
if (GNUNET_YES !=
GNUNET_BLOCK_get_key (GSF_block_ctx,
type,
data, data_size, &query))
{
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Failed to derive key for block of type %d\n",
+ (int) type);
GNUNET_break_op (0);
return;
}
@@ -1209,7 +1221,11 @@ GSF_stream_lookup_ (struct GSF_PendingRequest *pr)
if (0 != pr->public_data.anonymity_level)
return;
if (0 == pr->public_data.target)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Cannot do stream-based download, target peer not known\n");
return;
+ }
if (NULL != pr->stream_request)
return;
pr->stream_request = GSF_stream_query (pr->public_data.target,