Re: [exim] exim very slow

Top Page
Delete this message
Reply to this message
Author: Arkadiusz Miskiewicz
Date:  
To: exim-users
CC: Philip Hazel
Subject: Re: [exim] exim very slow
On Tuesday 21 of September 2004 14:55, Philip Hazel wrote:

> > Any suggestions? exim 4.42 on Linux 2.4.27 with glibc 2.2.5
>
> Patch line 3627 in exim.c. It reads
>
> for (i = 1; i <= 10; i++)
>
> change 10 to 1. There will still be a 1-second sleep when it fails; that
> is another bug, I think. Cut out line 3696 to remove it.


Works well, thanks!

diff -urN exim-4.42.org/src/exim.c exim-4.42/src/exim.c
--- exim-4.42.org/src/exim.c2004-09-21 15:04:23.506142125 +0200
+++ exim-4.42/src/exim.c2004-09-21 15:08:08.497942908 +0200
@@ -3551,7 +3551,7 @@
delays are in evidence. Save the home directory for use in filter testing
(only). */

-for (i = 1; i <= 10; i++)
+for (i = 1; i <= (finduser_retries + 1); i++)
   {
   if ((pw = getpwuid(real_uid)) != NULL)
     {
@@ -3620,7 +3620,8 @@


     break;
     }
-  sleep(1);
+  if (finduser_retries)
+      sleep(1);
   }


/* If we cannot get a user login, log the incident and give up, unless t

> Philip Hazel            University of Cambridge Computing Service,
> ph10@???      Cambridge, England. Phone: +44 1223 334714.
> Get the Exim 4 book:    http://www.uit.co.uk/exim-book


-- 
Arkadiusz Miśkiewicz                    PLD/Linux Team
http://www.t17.ds.pwr.wroc.pl/~misiek/  http://ftp.pld-linux.org/