Package: gearman-job-server
Version: 1.0.6-5

If gearmand logs on EMFILE error.
(http://man7.org/linux/man-pages/man2/accept.2.html)
In such situation the log file grows rapidly.

I hope we'll solve the issue in next release.
In attachment is a patch for aforementioned version used Debian stable.

See also:
https://github.com/gearman/gearmand/issues/102

Regards,
Alexei
From 11798da5382f6d9cdfb3f79b8d1404ba46b8f27b Mon Sep 17 00:00:00 2001
From: Alexei Pastuchov <alexei.pastuc...@telecolumbus.de>
Date: Wed, 26 Apr 2017 11:54:00 +0200
Subject: [PATCH] Fix: no logging on accept EMFILE to prevend log file dumping

---
 libgearman-server/gearmand.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgearman-server/gearmand.cc b/libgearman-server/gearmand.cc
index a4601ee..1e2dae1 100644
--- a/libgearman-server/gearmand.cc
+++ b/libgearman-server/gearmand.cc
@@ -781,10 +781,10 @@ static void _listen_event(int event_fd, short events __attribute__ ((unused)), v
     switch (local_error)
     {
     case EINTR:
+    case EMFILE:
       return;
 
     case ECONNABORTED:
-    case EMFILE:
       gearmand_perror(local_error, "accept");
       return;
 
-- 
1.7.10.4

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to