diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-24 08:28:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-24 08:28:19 +0000 |
commit | 6c33a3bbe11a98b306b42854812d8af6662b892e (patch) | |
tree | 8882ce9a28d1217de7466bc3ebda0de28e47b5ff /src/gns/gnunet-service-gns.c | |
parent | 6817ec26a3d87926add681d37685214fc3370541 (diff) | |
download | gnunet-6c33a3bbe11a98b306b42854812d8af6662b892e.tar.gz gnunet-6c33a3bbe11a98b306b42854812d8af6662b892e.zip |
-keep reading from client to support multiple GNS requests in parallel
Diffstat (limited to 'src/gns/gnunet-service-gns.c')
-rw-r--r-- | src/gns/gnunet-service-gns.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c index 092bba705..5838dc740 100644 --- a/src/gns/gnunet-service-gns.c +++ b/src/gns/gnunet-service-gns.c | |||
@@ -504,8 +504,6 @@ send_lookup_response (void* cls, | |||
504 | &rmsg->header, | 504 | &rmsg->header, |
505 | GNUNET_NO); | 505 | GNUNET_NO); |
506 | GNUNET_free (rmsg); | 506 | GNUNET_free (rmsg); |
507 | GNUNET_SERVER_receive_done (clh->client, | ||
508 | GNUNET_OK); | ||
509 | GNUNET_CONTAINER_DLL_remove (clh_head, clh_tail, clh); | 507 | GNUNET_CONTAINER_DLL_remove (clh_head, clh_tail, clh); |
510 | GNUNET_SERVER_client_set_user_context (clh->client, NULL); | 508 | GNUNET_SERVER_client_set_user_context (clh->client, NULL); |
511 | GNUNET_free (clh); | 509 | GNUNET_free (clh); |
@@ -564,6 +562,7 @@ handle_lookup (void *cls, | |||
564 | return; | 562 | return; |
565 | } | 563 | } |
566 | GNUNET_STRINGS_utf8_tolower (utf_in, &nameptr); | 564 | GNUNET_STRINGS_utf8_tolower (utf_in, &nameptr); |
565 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | ||
567 | 566 | ||
568 | clh = GNUNET_new (struct ClientLookupHandle); | 567 | clh = GNUNET_new (struct ClientLookupHandle); |
569 | GNUNET_SERVER_client_set_user_context (client, clh); | 568 | GNUNET_SERVER_client_set_user_context (client, clh); |