Timeout patch

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: james
Υ/ο: exim-users
Αντικείμενο: Timeout patch
Well, that turned out to be easily fixed. A stupid bit of coding that
didn't get the timer reset as often as it should. This patch fixes it.
It will work for both 0.52 and 0.53, since the accept.c source is
identical in both of those releases.

Philip

--
Philip Hazel                   University Computing Service,
ph10@???             New Museums Site, Cambridge CB2 3QG,
P.Hazel@???          England.  Phone: +44 1223 334714



*** Releases/exim-0.53/src/accept.c     Fri Jun 21 16:50:39 1996
--- src/accept.c        Mon Jul  1 12:35:44 1996
***************
*** 234,239 ****
--- 234,240 ----


  while ((ch = getc(fin)) != EOF)
    {
+   if (ch == '\n') alarm(smtp_receive_timeout); 
    switch (ch_state)
      {
      case 0:                             /* After LF or CRLF */
***************
*** 250,256 ****
      if (ch == '\n')
        {
        ch_state = 0;
-       alarm(smtp_receive_timeout); /* Reset timer */
        }
      else if (ch == '\r')
        {
--- 251,256 ----