[Mimedefang] Bigger MAX_QUEUE_SIZE, why is there a hardcoded limit ?

Martin Blapp mb at imp.ch
Wed Aug 8 14:15:06 EDT 2007


Hi David,

Can you tell my why there is a hardcoded queue limit
in mimedefang-multiplexor ?

This limit is tunable, for example in FreeBSD:

sysctl kern.ipc.somaxconn=256

and perl also allows overwrite (in mimedefang-filter)

sub SOMAXCONN() {256;}

I'm currently running a queue size of 256, and it
works fine.

--
Martin

--- mimedefang-multiplexor.c    Fri Feb  2 21:37:06 2007
+++ mimedefang-multiplexor.c    Fri Aug  3 10:20:56 2007
@@ -111,7 +111,7 @@
      char *cmd;                  /* Command to send to slave */
  } Request;

  #define MAX_QUEUE_SIZE 128      /* Hard-coded limit    */
  Request RequestQueue[MAX_QUEUE_SIZE];
  int NumQueuedRequests = 0;
  Request *RequestHead

Martin Blapp, <mb at imp.ch> <mbr at FreeBSD.org>
------------------------------------------------------------------
ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH
Phone: +41 61 826 93 00 Fax: +41 61 826 93 01
PGP: <finger -l mbr at freebsd.org>
PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E
------------------------------------------------------------------




More information about the MIMEDefang mailing list