[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: REST/GNS: timeout handle 2n
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: REST/GNS: timeout handle 2nd try |
Date: |
Tue, 30 Apr 2019 23:06:45 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 6aca750d3 REST/GNS: timeout handle 2nd try
6aca750d3 is described below
commit 6aca750d325ff4058613d490d3e42e784d624dd3
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Tue Apr 30 23:06:28 2019 +0200
REST/GNS: timeout handle 2nd try
---
src/gns/plugin_rest_gns.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/gns/plugin_rest_gns.c b/src/gns/plugin_rest_gns.c
index 888688798..7f8d6fccf 100644
--- a/src/gns/plugin_rest_gns.c
+++ b/src/gns/plugin_rest_gns.c
@@ -209,6 +209,15 @@ do_error (void *cls)
}
+static void
+do_timeout (void *cls)
+{
+ struct RequestHandle *handle = cls;
+ handle->timeout_task = NULL;
+ do_error (handle);
+}
+
+
/**
* Iterator called on obtained result for a GNS lookup.
*
@@ -402,7 +411,7 @@ rest_process_request(struct GNUNET_REST_RequestHandle
*rest_handle,
handle->timeout_task =
GNUNET_SCHEDULER_add_delayed (handle->timeout,
- &do_error,
+ &do_timeout,
handle);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected\n");
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: REST/GNS: timeout handle 2nd try,
gnunet <=