projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
07478c0
)
* config.c: default setting for "maxmsglen" is now 10 megabytes, not INT_MAX
author
Art Cancro
<ajc@citadel.org>
Fri, 4 Mar 2005 02:18:46 +0000
(
02:18
+0000)
committer
Art Cancro
<ajc@citadel.org>
Fri, 4 Mar 2005 02:18:46 +0000
(
02:18
+0000)
citadel/ChangeLog
patch
|
blob
|
history
citadel/config.c
patch
|
blob
|
history
diff --git
a/citadel/ChangeLog
b/citadel/ChangeLog
index 0a15365901b9af5ada960ad6cb668be75bb26373..d8f22973eee65980713b2224c1fc0910041c8f2d 100644
(file)
--- a/
citadel/ChangeLog
+++ b/
citadel/ChangeLog
@@
-1,4
+1,7
@@
$Log$
$Log$
+ Revision 641.19 2005/03/04 02:18:46 ajc
+ * config.c: default setting for "maxmsglen" is now 10 megabytes, not INT_MAX
+
Revision 641.18 2005/03/03 18:10:27 ajc
* sysdep.c: change the algorithm for dynamically expanding the redirect
buffer's size. Large writes were overflowing it.
Revision 641.18 2005/03/03 18:10:27 ajc
* sysdep.c: change the algorithm for dynamically expanding the redirect
buffer's size. Large writes were overflowing it.
@@
-6500,4
+6503,3
@@
Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
diff --git
a/citadel/config.c
b/citadel/config.c
index 0a305151b70bb5a15642b68d1d3d6d2714792818..ed95eab0a5b3b81648a89674bdc10281f6c833ce 100644
(file)
--- a/
citadel/config.c
+++ b/
citadel/config.c
@@
-80,11
+80,12
@@
void get_config(void) {
exit(1);
}
exit(1);
}
- /* Default maximum message length is 'unlimited' (max int)
- * and the minimum is 8192
+ /* Default maximum message length is 10 megabytes. This is site
+ * configurable. Also check to make sure the limit has not been
+ * set below 8192 bytes.
*/
if (config.c_maxmsglen <= 0)
*/
if (config.c_maxmsglen <= 0)
- config.c_maxmsglen =
INT_MAX
;
+ config.c_maxmsglen =
10485760
;
if (config.c_maxmsglen < 8192)
config.c_maxmsglen = 8192;
if (config.c_maxmsglen < 8192)
config.c_maxmsglen = 8192;