tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <mailing-tomcat-u...@schoenhaber.de>
Subject Re: Very Slow Startup with APR
Date Tue, 21 Aug 2007 15:26:01 GMT
Rainer Jung wrote:

> There's an addition in tcnative 1.1.10:
> 
> Author: mturk
> Date: Sun Apr  1 22:22:42 2007
> New Revision: 524725
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=524725
> Log:
> In case we don't specify the global randFile use like mod_ssl does with 
> builtin. This fixes long init on some platforms.
> 
> Modified:
>      tomcat/connectors/trunk/jni/native/src/ssl.c
> 
> Modified: tomcat/connectors/trunk/jni/native/src/ssl.c
> URL: 
> http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/src/ssl.c?view=diff&rev=524725&r1=524724&r2=524725
> ==============================================================================
> --- tomcat/connectors/trunk/jni/native/src/ssl.c (original)
> +++ tomcat/connectors/trunk/jni/native/src/ssl.c Sun Apr  1 22:22:42 2007
> @@ -259,7 +259,7 @@
>           file = ssl_global_rand_file;
> 
>       if (file == NULL)
> -        file = RAND_file_name(buffer, sizeof(buffer));
> +        return -1;
>       else if ((n = RAND_egd(file)) > 0) {
>           return n;
>       }
> 
> Didn't check, but that might be the difference, concerning respecting 
> RANDFILE?

I'm not familiar enough with the tcnative or OpenSSL code to understand
the change above just by looking at this snippet. But from Mladen's
comment it seems to me that this would *introduce* respect for RANDFILE.
Am I wrong?

Regards
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message