2010-04-17, 07:58 AM
Heyho,
i had to relocate out forum to another host recently.
The new server is a windows 2003 with Apache 2.2/modssl and
php 5.3.
However, i noticed that viewing a page as member suddenly
takes 2 seconds instead of 0.2.
I traced the problem down to the following function:
inc/functions.php - secure_seed_rng()
This one calls (if function exists) "openssl_random_pseudo_bytes" which
takes about 1 second per call! One second to generate
8 random bytes. Come on, how secure has a random string to be?
As this one is called 2 times per page-view, it makes 2 second extra per
view.
Well, i will remove the sslmod again, since I dont really need
anyways, but I think you guys should reconsider using
that function on windows systems.
Thanks
Chuck
i had to relocate out forum to another host recently.
The new server is a windows 2003 with Apache 2.2/modssl and
php 5.3.
However, i noticed that viewing a page as member suddenly
takes 2 seconds instead of 0.2.
I traced the problem down to the following function:
inc/functions.php - secure_seed_rng()
This one calls (if function exists) "openssl_random_pseudo_bytes" which
takes about 1 second per call! One second to generate
8 random bytes. Come on, how secure has a random string to be?
As this one is called 2 times per page-view, it makes 2 second extra per
view.
Well, i will remove the sslmod again, since I dont really need
anyways, but I think you guys should reconsider using
that function on windows systems.
Thanks
Chuck