SOURCES: tpop3d-poll.patch - 1s timeout

arekm arekm at pld-linux.org
Thu Jun 22 17:55:14 CEST 2006


Author: arekm                        Date: Thu Jun 22 15:55:14 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- 1s timeout

---- Files affected:
SOURCES:
   tpop3d-poll.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/tpop3d-poll.patch
diff -u SOURCES/tpop3d-poll.patch:1.1 SOURCES/tpop3d-poll.patch:1.2
--- SOURCES/tpop3d-poll.patch:1.1	Thu Jun 22 17:45:55 2006
+++ SOURCES/tpop3d-poll.patch	Thu Jun 22 17:55:09 2006
@@ -243,7 +243,7 @@
 -        connections_pre_select(&n, &readfds, &writefds, NULL);
 -
 -        e = select(n + 1, &readfds, &writefds, NULL, &tv);
-+	e = poll(pfds, n + 1, 200);
++	e = poll(pfds, n + 1, 1000 /* must be smaller than timeout */);
          if (e == -1 && errno != EINTR) {
 -            log_print(LOG_WARNING, "net_loop: select: %m");
 +            log_print(LOG_WARNING, "net_loop: poll: %m");
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/tpop3d-poll.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list