Control: tags 818489 + pending

Dear maintainer,

I've prepared an NMU for vtun (versioned as 3.0.3-2.2) and
uploaded it to DELAYED/10. Please feel free to tell me if I
should delay it longer.

Regards,
Salvatore
diff -Nru vtun-3.0.3/debian/changelog vtun-3.0.3/debian/changelog
--- vtun-3.0.3/debian/changelog	2015-07-23 21:10:24.000000000 +0200
+++ vtun-3.0.3/debian/changelog	2016-04-30 15:56:00.000000000 +0200
@@ -1,3 +1,15 @@
+vtun (3.0.3-2.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix high CPU consumption after SIGHUP to the client.
+    When you send a SIGHUP to a vtun client process and it cannot connects
+    to the remote server, vtun try to reconnect without sleep between each
+    attempt.
+    In result, the vtun process uses lot of CPU, and write to syslog without
+    limit. (Closes: #818489)
+
+ -- Salvatore Bonaccorso <car...@debian.org>  Sat, 30 Apr 2016 12:06:47 +0200
+
 vtun (3.0.3-2.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru vtun-3.0.3/debian/patches/09-client-uses-lot-of-CPU-after-a-SIGHUP.patch vtun-3.0.3/debian/patches/09-client-uses-lot-of-CPU-after-a-SIGHUP.patch
--- vtun-3.0.3/debian/patches/09-client-uses-lot-of-CPU-after-a-SIGHUP.patch	1970-01-01 01:00:00.000000000 +0100
+++ vtun-3.0.3/debian/patches/09-client-uses-lot-of-CPU-after-a-SIGHUP.patch	2016-04-30 15:56:00.000000000 +0200
@@ -0,0 +1,26 @@
+Description: vtun client uses lot of CPU after a SIGHUP
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/818489
+Forwarded: no
+Author: J??r??me Arzel <jerome.ar...@netcat.io>
+Reviewed-by: Salvatore Bonaccorso <car...@debian.org>
+Last-Update: 2016-04-30
+
+--- a/client.c
++++ b/client.c
+@@ -133,6 +133,7 @@ void client(struct vtun_host *host)
+ 	   if (!vtun.quiet || errno != ETIMEDOUT)
+ 	      vtun_syslog(LOG_INFO,"Connect to %s failed. %s(%d)", vtun.svr_name,
+ 					strerror(errno), errno);
++	      client_term = 0;
+         } else {
+ 	   if( auth_client(s, host) ){   
+ 	      vtun_syslog(LOG_INFO,"Session %s[%s] opened",host->host,vtun.svr_name);
+@@ -143,6 +144,7 @@ void client(struct vtun_host *host)
+ 	      vtun_syslog(LOG_INFO,"Session %s[%s] closed",host->host,vtun.svr_name);
+ 	   } else {
+ 	      vtun_syslog(LOG_INFO,"Connection denied by %s",vtun.svr_name);
++	      client_term = 0;
+ 	   }
+ 	}
+ 	close(s);
diff -Nru vtun-3.0.3/debian/patches/series vtun-3.0.3/debian/patches/series
--- vtun-3.0.3/debian/patches/series	2015-07-23 21:08:43.000000000 +0200
+++ vtun-3.0.3/debian/patches/series	2016-04-30 15:56:00.000000000 +0200
@@ -7,3 +7,4 @@
 06-ipv6.patch
 07-dual-family-transport.patch
 08-gcc5-inline.patch
+09-client-uses-lot-of-CPU-after-a-SIGHUP.patch

Reply via email to