Hi all!
I'm having problems with the session cache. When the server does a fresh
start, everything works fine till the first expiration occurs. From then
on, it looks like the session cache gets corrupted and even the sessions
that gets set in the cache are being removed and missed one second
later.
This is driving me mad, because when the session is not found in the
cache, Apache forces a renegotiation and Netscape ask for the Client
Certificate again....
My environment:
OS: Solaris 2.5.1 on a Sun Ultra-1
Apache: Apache/1.3.9 (Unix) mod_ssl/2.4.0 OpenSSL/0.9.4 mod_perl/1.21
with SDBM and a file mutex
Browser: Netscape Communicator 4.61 for Solaris 2.5 fortified, only
one...
I can send my Configure.apaci and my httpd.conf if you need it...
This is the ssl_engine_log filtered with "grep 'Inter-Process' " with
some comments (starting with ***). Sorry this is a bit long...
[25/Aug/1999 19:39:14] [trace] Inter-Process Session Cache (DBM) Expiry:
old: 0, new: 0, removed: 0
[25/Aug/1999 19:39:42] [trace] Inter-Process Session Cache: request=GET
status=MISSED
id=41B8CDC284F66DB2B5632CF34471E925DC74CE27321C89BC9016C503A8A4BB73
(session renewal)
*** Here the browser is trying to use a session from the previous run of
apache - It isn't there
[25/Aug/1999 19:39:47] [trace] Inter-Process Session Cache: request=SET
status=OK
id=2A35E062EA9A763DBE2EF144F56814CCF20DEF95F32B47E94459BEEDFE2B5EBB
timeout=295s (session caching)
[25/Aug/1999 19:39:54] [trace] Inter-Process Session Cache: request=GET
status=FOUND
id=2A35E062EA9A763DBE2EF144F56814CCF20DEF95F32B47E94459BEEDFE2B5EBB
(session reuse)
[25/Aug/1999 19:40:36] [trace] Inter-Process Session Cache: request=GET
status=FOUND
id=2A35E062EA9A763DBE2EF144F56814CCF20DEF95F32B47E94459BEEDFE2B5EBB
(session reuse)
[25/Aug/1999 19:40:38] [trace] Inter-Process Session Cache: request=GET
status=FOUND
id=2A35E062EA9A763DBE2EF144F56814CCF20DEF95F32B47E94459BEEDFE2B5EBB
(session reuse)
*** I downloaded a page here with some gifs, the session is the same for
all requests
[25/Aug/1999 19:55:35] [trace] Inter-Process Session Cache (DBM) Expiry:
old: 1, new: 1, removed: 0
*** I let the browser alone for 15 minutes, enougth for the cache to
expire. What is the "new: 1" about?
[25/Aug/1999 19:55:36] [trace] Inter-Process Session Cache: request=GET
status=MISSED
id=2A35E062EA9A763DBE2EF144F56814CCF20DEF95F32B47E94459BEEDFE2B5EBB
(session renewal)
*** Netscape tried to use the same session as before, it expired....
[25/Aug/1999 19:55:40] [trace] Inter-Process Session Cache: request=SET
status=OK
id=6A493123EE01A4D29A98F1417A467C30BFA8B50494F8F8FB368E171C81FC5E93
timeout=296s (session caching)
[25/Aug/1999 19:55:40] [trace] Inter-Process Session Cache (DBM) Expiry:
old: 1, new: 0, removed: 1
*** It started a new session and OOPS, why is there an old entry?
[25/Aug/1999 19:55:40] [trace] Inter-Process Session Cache: request=GET
status=MISSED
id=6A493123EE01A4D29A98F1417A467C30BFA8B50494F8F8FB368E171C81FC5E93
(session renewal)
*** Why the session that was set above isn't found now??? It was
removed?!?!?
[25/Aug/1999 19:55:42] [trace] Inter-Process Session Cache (DBM) Expiry:
old: 0, new: 0, removed: 0
[25/Aug/1999 19:55:42] [trace] Inter-Process Session Cache: request=GET
status=MISSED
id=4E3342BF3DF0740F5962C236F2F0CC1DB4DC70FD7BE552BB67F40D906F47EE6F
(session renewal)
[25/Aug/1999 19:55:42] [trace] Inter-Process Session Cache (DBM) Expiry:
old: 0, new: 0, removed: 0
[25/Aug/1999 19:55:42] [trace] Inter-Process Session Cache: request=GET
status=MISSED
id=20AC16A79E8610078A8945F9D4F7AE9D0702D4F17050A07B5A62A9CA5CDCE8DB
(session renewal)
[25/Aug/1999 19:55:45] [trace] Inter-Process Session Cache: request=SET
status=OK
id=88F150A66B15B8D84D20A9A0A3C0E9C62C2D1A91F162AE5266810C47AB62EF05
timeout=297s (session caching)
[25/Aug/1999 19:55:46] [trace] Inter-Process Session Cache: request=SET
status=OK
id=10F32F2287C4380D0E1B2BDDA4314751734D2274D639627CF75979DEAB614386
timeout=296s (session caching)
[25/Aug/1999 19:55:47] [trace] Inter-Process Session Cache: request=SET
status=OK
id=BD8E869DFAF194B191A25C9A522AF309D7AA6F9BBE04350778DC962ED677262F
timeout=293s (session caching)
[25/Aug/1999 19:56:11] [trace] Inter-Process Session Cache (DBM) Expiry:
old: 3, new: 0, removed: 3
*** Now Netscape and Apache went really crazy... Netscape tried to use
two sessions I don't now anything about and then started 3 new
sessions... They were removed just after been created?!?!?!
[25/Aug/1999 19:56:11] [trace] Inter-Process Session Cache: request=GET
status=MISSED
id=BD8E869DFAF194B191A25C9A522AF309D7AA6F9BBE04350778DC962ED677262F
(session renewal)
*** Netscape tried to use one of the above sessions, not found ...
[25/Aug/1999 19:56:15] [trace] Inter-Process Session Cache: request=SET
status=OK
id=0CD7AA8B3930BAB9790CD22E92F016491433787DB3C680B1FED58393F97881D7
timeout=296s (session caching)
[25/Aug/1999 19:56:15] [trace] Inter-Process Session Cache (DBM) Expiry:
old: 1, new: 0, removed: 1
[25/Aug/1999 19:56:15] [trace] Inter-Process Session Cache: request=GET
status=MISSED
id=0CD7AA8B3930BAB9790CD22E92F016491433787DB3C680B1FED58393F97881D7
(session renewal)
*** Same thing as before. What the *hell* is happening here?
[25/Aug/1999 19:56:21] [trace] Inter-Process Session Cache (DBM) Expiry:
old: 0, new: 0, removed: 0
[25/Aug/1999 19:56:21] [trace] Inter-Process Session Cache: request=GET
status=MISSED
id=10F32F2287C4380D0E1B2BDDA4314751734D2274D639627CF75979DEAB614386
(session renewal)
[25/Aug/1999 19:56:21] [trace] Inter-Process Session Cache (DBM) Expiry:
old: 0, new: 0, removed: 0
[25/Aug/1999 19:56:21] [trace] Inter-Process Session Cache: request=GET
status=MISSED
id=88F150A66B15B8D84D20A9A0A3C0E9C62C2D1A91F162AE5266810C47AB62EF05
(session renewal)
*** The sessions that were set before aren't found either.
I am sure I am configuring the cache correctly, as the files
ssl_mutex.$$, ssl_scache.pag and ssl_scache.dir gets created when the
server starts. I've also 'truss'ed the server and haven't found anything
anusual with the locking as every open of 'ssl_scache.pag' and
'ssl_scache.dir' is surrounded of fcntl's of file descriptor 24 which is
'ssl_mutex.$$'.
Could anybody help me?
I haven't tried yet the MM based cache, but this one should still
work...
Thanks in advance,
Best regards, Alfredo
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]