From: Vsevolod Stakhov Date: Fri, 4 Feb 2011 16:32:57 +0000 (+0300) Subject: * Try to fix descriptors leakage in controller X-Git-Tag: 0.3.7~61 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6d6284375d915270e3372d2e6625ccaf1fdcbcd5;p=rspamd.git * Try to fix descriptors leakage in controller --- diff --git a/src/controller.c b/src/controller.c index d204a1aa0..e4dea60f7 100644 --- a/src/controller.c +++ b/src/controller.c @@ -1007,6 +1007,7 @@ controller_write_socket (void *arg) session->state = STATE_COMMAND; rspamd_set_dispatcher_policy (session->dispatcher, BUFFER_LINE, BUFSIZ); } + rspamd_dispatcher_restore (session->dispatcher); return TRUE; } @@ -1037,7 +1038,6 @@ accept_socket (gint fd, short what, void *arg) ctx = worker->ctx; if ((nfd = accept_from_socket (fd, (struct sockaddr *)&ss, &addrlen)) == -1) { - msg_warn ("accept failed: %s", strerror (errno)); return; }