On Fri, Oct 02, 1998, Maert Laak wrote:

> > [...]
> > What system was this on? Which compiler?
> 
>   SCO 3.2v4.2 + GNU gcc 2.7.2.1
> 
>   If it is initialized to zero so why is this code needed at all:
> --- line 194 of ssl_gcachecommon.c of mod_ssl-2.0.11-1.3.2
>   static int nCalls;
>  
>   if (++nCalls == 1) {
>   nCalls = 0;
>   ExpireCache();
>   }
> ---
>   I see no meaning of this if-thing there at all?

There is no meaning (at least when comparing to 1), so it's now removed from
the source. At the time Ben invented it, it was meant to expire only after N
calls and not every call of the function. Then Ben (or was it me?) reduced N
to 1. I've completely removed the if-clause now in mod_ssl 2.0.12.

>   I don't know about the GCC static variable initializing stuff but fact
> is that when I uncommented the if clause from there the gcache started
> to expire cahce correctly.

Fine, then 2.0.12 now expires correctly, 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]

Reply via email to