changeset 84:620475b58755

Added WAITTIME (time to sleep before checking if we should spawn another mlmmj-send process) option in mlmmj.h
author mortenp
date Wed, 19 May 2004 01:25:36 +1000
parents 4c24780dc224
children 6e3246ae87fd
files ChangeLog include/mlmmj.h src/mlmmj-send.c
diffstat 3 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed May 19 00:40:17 2004 +1000
+++ b/ChangeLog	Wed May 19 01:25:36 2004 +1000
@@ -1,3 +1,5 @@
+ o Added WAITTIME (time to sleep before checking if we should spawn another
+   mlmmj-send process) option in mlmmj.h
  o Fixed error handling in mlmmj-unsub if we can not open subscribers.d/
 0.5.0
  o Use a subscribers.d/ directory for several subscribers files. mlmmj-send
--- a/include/mlmmj.h	Wed May 19 00:40:17 2004 +1000
+++ b/include/mlmmj.h	Wed May 19 01:25:36 2004 +1000
@@ -15,6 +15,7 @@
 #define READ_BUFSIZE 2048
 #define RECIPDELIM '+'
 #define MAX_CONNECTIONS 3 /* How many max connections to relayhost */
+#define WAITSLEEP 1000
 
 struct mailhdr {
 	const char *token;
--- a/src/mlmmj-send.c	Wed May 19 00:40:17 2004 +1000
+++ b/src/mlmmj-send.c	Wed May 19 01:25:36 2004 +1000
@@ -404,7 +404,7 @@
 			free(subfilename);
 
 			while((conncount >= MAX_CONNECTIONS))
-				usleep(100);
+				usleep(WAITSLEEP);
 
 			childpid = fork();
 			if(childpid < 0)