gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: -nicer suicide


From: gnunet
Subject: [taler-exchange] branch master updated: -nicer suicide
Date: Tue, 30 Nov 2021 22:57:28 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new c47cb65f -nicer suicide
c47cb65f is described below

commit c47cb65fb80325cf9a6791fad66c75b603c6ee28
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Nov 30 22:57:20 2021 +0100

    -nicer suicide
---
 src/exchange/taler-exchange-httpd.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd.c 
b/src/exchange/taler-exchange-httpd.c
index 780c4658..0d001fde 100644
--- a/src/exchange/taler-exchange-httpd.c
+++ b/src/exchange/taler-exchange-httpd.c
@@ -918,15 +918,6 @@ handle_mhd_request (void *cls,
 
     GNUNET_log (GNUNET_ERROR_TYPE_INFO,
                 "Handling new request\n");
-    cnt = req_count++;
-    if (req_max == cnt)
-    {
-      GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-                  "Restarting exchange service after %llu requests\n",
-                  cnt);
-      (void) kill (getpid (),
-                   SIGTERM);
-    }
 
     /* We're in a new async scope! */
     rc = *con_cls = GNUNET_new (struct TEH_RequestContext);
@@ -1661,6 +1652,15 @@ connection_done (void *cls,
   if (NULL != input_filename)
     GNUNET_SCHEDULER_shutdown ();
 #endif
+  cnt = req_count++;
+  if (req_max == cnt)
+  {
+    GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                "Restarting exchange service after %llu requests\n",
+                cnt);
+    (void) kill (getpid (),
+                 SIGTERM);
+  }
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]