Skip to content

Commit

Permalink
Revert "100KB of shared memory by default"
Browse files Browse the repository at this point in the history
This reverts commit c3864a9.
  • Loading branch information
drogus committed Jun 26, 2008
1 parent a84644d commit 50ffdb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README
Expand Up @@ -8,8 +8,8 @@ apxs2 -c -i -a mod_upload_progress.c
-a -> activate (add LoadModule line to httpd.conf)

Global config:
you can define maximum size for shared memory (default is 100kB):
UploadProgressSharedMemorySize 1024000 # sets memory size to 1MB
you can define maximum size for shared memory (default is 10kB):
UploadProgressSharedMemorySize 102400 # sets memory size to 100kB

Config for vhost:
<Location />
Expand Down
2 changes: 1 addition & 1 deletion mod_upload_progress.c
Expand Up @@ -197,7 +197,7 @@ upload_progress_config_create_dir(apr_pool_t *p, char *dirspec) {
void *upload_progress_config_create_server(apr_pool_t *p, server_rec *s) {
ServerConfig *config = (ServerConfig *)apr_pcalloc(p, sizeof(ServerConfig));
config->cache_file = apr_pstrdup(p, "/tmp/upload_progress_cache");
config->cache_bytes = 102400;
config->cache_bytes = 10240;
apr_pool_create(&config->pool, p);
return config;
}
Expand Down

0 comments on commit 50ffdb4

Please sign in to comment.