View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0037747||FPC||Packages||public||2020-09-14 18:32||2020-10-01 19:55|
|Reporter||Simon Booth||Assigned To||Michael Van Canneyt|
|Fixed in Version||3.3.1|
|Summary||0037747: https / ssl failure using example program|
|Description||HTTPS connections fail to certain domains while others are fine|
It is notable that the big sites all work while smaller ones tend to fail (whitelisting?)
This has been observed on current versions of both MacOSX and iOS
|Steps To Reproduce||Go to https://wiki.lazarus.freepascal.org/fphttpclient#Download_a_file_via_HTTP_protocol|
and locate dl_fphttp_c
Compile and run it (everything is fine)
Alter the URL fetched from https://google.com/ to https://wiki.lazarus.freepascal.org/
Compile and run it (everything is NOT fine)
An unhandled exception occurred at $000000010D02A192:
ESocketError: Connect to wiki.lazarus.freepascal.org:443 failed.
|Tags||No tags attached.|
|Fixed in Revision||46987|
||Probably the same issue as reported on the forum: https://forum.lazarus.freepascal.org/index.php/topic,50350.msg373929.html#msg373929|
||Yes. It works on Linux, the issue is particular to macos. There is a bugreport with fix, still needs to be checked, planned for next weekend.|
If someone can point me at a bug-fixed fphttp the app I'm developing will test it nicely. It downloads 1.5g of data in 13,325 files from a variety of sources that currently fails under MacOS but work on everything else I've tried it on (tested on Win10, Linux x64 + Aarch64 so far).
A smaller-scale test is also ready to check iOS which will be expanded to the full test when MacOS works.
Please have patience.
As I said, this is known and will be fixed, but this is an open source project, and I need time to fix it.
You can fix it yourself with the patch mentioned in the forum post (see Bi0T1N's reply) or you can wait till I do it.
I am patient (sometimes <g>)
Anyway I read the forum post properly and found the fix so am just trying it out
My test is running nicely and ha currently grabbed 50Mb in 542 files while I typed this reply
||A quick FYI - my test has finished, 13,325 files (1.5G) all downloaded correctly with patched openssl|
Solved slightly differently than proposed in the forum.
The LibreSSL support is configurable. It is loaded first on Mac, last on Linux.
On Windows there is currently no difference.
Michael, your patch removes a feature where you could specify the libraries to use. DLLSSLName and DLLSSLName2 were variables.
DLLSSLName := 'C:/Something/ssleay32.dll';
I think your patch should make BaseSSLName and BaseCryptoName variables to restore this feature.
Ah. I will look at this, sorry about that.
But I will do this differently by explicitly specifying the library names to use to InitSSLInterface()
||That would be even better, thanks.|
|2020-09-14 18:32||Simon Booth||New Issue|
|2020-09-14 20:03||Bi0T1N||Note Added: 0125540|
|2020-09-14 20:57||Michael Van Canneyt||Note Added: 0125541|
|2020-09-15 03:06||Simon Booth||Note Added: 0125544|
|2020-09-15 07:08||Michael Van Canneyt||Assigned To||=> Michael Van Canneyt|
|2020-09-15 07:08||Michael Van Canneyt||Status||new => assigned|
|2020-09-15 07:11||Michael Van Canneyt||Note Added: 0125545|
|2020-09-15 14:12||Simon Booth||Note Added: 0125549|
|2020-09-16 00:00||Simon Booth||Note Added: 0125561|
|2020-09-28 15:30||Michael Van Canneyt||Status||assigned => resolved|
|2020-09-28 15:30||Michael Van Canneyt||Resolution||open => fixed|
|2020-09-28 15:30||Michael Van Canneyt||Fixed in Version||=> 3.3.1|
|2020-09-28 15:30||Michael Van Canneyt||Fixed in Revision||=> 46987|
|2020-09-28 15:30||Michael Van Canneyt||FPCTarget||=> 3.2.2|
|2020-09-28 15:30||Michael Van Canneyt||Note Added: 0125924|
|2020-09-30 23:05||olly||Note Added: 0126011|
|2020-10-01 10:48||Michael Van Canneyt||Note Added: 0126016|
|2020-10-01 19:55||olly||Note Added: 0126026|
|2020-10-01 19:55||olly||Note Edited: 0126011||View Revisions|