OpenSSL calling extremly slow RandScreen due InitSSLInterface
Original Reporter info from Mantis: ps
-
Reporter name: Pavol S
Original Reporter info from Mantis: ps
- Reporter name: Pavol S
Description:
In openssl.pas there is calling _RandScreen :
function InitSSLInterface: Boolean;
begin
Result:=SSLLoaded;
...
if assigned(_RandScreen) then
_RandScreen;
...
This is extremly painful because it take 1-2 sec. to get this random numbers from screen on modern machine and nobody use it with TFPHTTPClient...
Steps to reproduce:
uses
sslsockets, ssockets, fphttpclient;
begin
HTTP := TFPHTTPClient.Create(Nil);
HTTP.HTTPMethod( 'GET', 'https://somecool.api.com', Response, []);
// wait long time for first openssl init ...
...
end.
Mantis conversion info:
- Mantis ID: 36045
- OS: Windows
- OS Build: 10
- Platform: Win32/64
- Version: 3.0.4
- Fixed in version: 3.3.1
- Fixed in revision: 42931 (#08b665d6)
- Target version: 3.2.0