On April 2, 2004 01:41 pm, Loyless Jerrod A Contr ESC/NI7S1 wrote: > I am using SSLSessionCache dbm:/usr/local/apache/logs/ssl_cache. The > dbm files are created but they remain empty when I attempt with client > auth turned on. Where is the size limitation set on the caching of > sessions? I do see the request=SET, status=BAD as you mentioned, which > seems to indicate that Apache is never able to write to the file.
----------------- mod_ssl-2.8.16-1.3.29/pkg.sslmod/ssl_scache_dbm.c:151-158 /* be careful: do not try to store too much bytes in a DBM file! */ #ifdef SSL_USE_SDBM if ((idlen + nData) >= PAIRMAX) return FALSE; #else if ((idlen + nData) >= 950 /* at least less than approx. 1KB */) return FALSE; #endif ----------------- and ----------------- mod_ssl-2.8.16-1.3.29/pkg.sslmod/ssl_util_sdbm.h:76-84 #ifdef MOD_SSL #define DBLKSIZ 16384 /* SSL cert chains require more */ #define PBLKSIZ 8192 /* SSL cert chains require more */ #define PAIRMAX 8008 /* arbitrary on PBLKSIZ-N */ #else #define DBLKSIZ 4096 #define PBLKSIZ 1024 #define PAIRMAX 1008 /* arbitrary on PBLKSIZ-N */ #endif ----------------- My advice would be to use shmcb rather than dbm, if you can. Not that I'm biased of course, oh no. :-) Cheers, Geoff -- Geoff Thorpe [EMAIL PROTECTED] http://www.geoffthorpe.net/ ______________________________________________________________________ Apache Interface to OpenSSL (mod_ssl) www.modssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]