On Fri, Oct 02, 1998, Ben Laurie wrote:
> > > In file ssl_gcachecommon.c in subroutine LocalCacheFind (row 189) there
> > > is a static int variable nCalls that _is_not_initialized_? And later
> > > this nCalls is increased and compared to 1. So the results are
> > > unpredictable here?
> > >
> > > I overcome this bug by uncommenting the if-thing there and executing
> > > ExpireCache every time LocalCacheFind is called. This way
> > > SSLSessionCacheTimeout works correctly.
> >
> > Yes, that's a bug. Fixed for mod_ssl 2.0.12. Thanks for the hint.
>
> If it is a bug, it is a bug in the C compiler. Uninitialised static
> variables are guaranteed to be set to zero.
>
> What system was this on? Which compiler?
Either a compiler bug or not: It's always a little bit unsafe to depend on
those things, because compiler vendors have their own law. I've now totally
removed the stuff from gcache, so we've no more problem with it. And
in Apache-SSL you removed it already, too.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
Apache Interface to SSLeay (mod_ssl) www.engelschall.com/sw/mod_ssl/
Official Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]