c4a9a851248ef6525b4f13177c168299207ff52d
galt
  Wed Nov 9 19:06:11 2011 -0800
no upload limits, no tempfile usage for huge input
diff --git src/lib/mime.c src/lib/mime.c
index d1dae5d..feccace 100644
--- src/lib/mime.c
+++ src/lib/mime.c
@@ -9,31 +9,31 @@
  * granted for all use - public, private or commercial. */
 
 #include "common.h"
 #include "hash.h"
 #include "linefile.h"
 #include "cheapcgi.h"
 #include "portable.h"
 #include "errabort.h"
 #include "mime.h"
 
 static char const rcsid[] = "$Id: mime.c,v 1.13 2006/06/20 18:31:24 galt Exp $";
 /* 
  * Note: MIME is a nested structure that makes a tree that streams in depth-first.
  */
 
-#define MAXPARTSIZE 512*1024*1024  /* max size before gets put in a tempfile to save memory */
+#define MAXPARTSIZE 64LL*1024*1024*1024  /* max size before gets put in a tempfile to save memory. It currently has been set so large that it will not be triggered. */
 #define MAXPARTLINESIZE 1024 /* header lines should be small, so bad if bigger than this */
 #define MAXDATASIZE 64LL*1024*1024*1024 /* max size allowable for large uploads */
 #define MAXBOUNDARY 72+5     /* max size of buffer for boundary 72+--""0 */
 
 enum nlType nlType = nlt_undet;
 
 static void setEopMB(struct mimeBuf *b)
 /* do a search for boundary, set eop End Of Part if found */
 {
 if (b->blen > 0)
     b->eop = memMatch(b->boundary, b->blen, b->i, b->eoi - b->i);
 else
     b->eop = NULL;
 }