ObjFW  View Ticket

Ticket UUID: 5ad1ca4257d66758f9e7a99308aef8dbddc18ae0
Title: OFTLSStream with OpenSSL implementation sometimes hangs
Status: Fixed Type: Code Defect
Severity: Severe Priority: High
Subsystem: Resolution: Fixed
Last Modified: 2024-05-22 20:14:03
Version Found In: Milestone: 1.0
User Comments:
js added on 2022-09-12 09:05:11:

When using ofhttp to download a file via HTTPS and ObjFW compiled with OpenSSL for OFTLSStream support, downloads sometimes hang. I collected a few reproducers, but none of them work anymore. However, this issue sporadically still happens. It seems to depend on certain network conditions.

As a workaround, GnuTLS could be preferred over OpenSSL for 1.0, but then it's even less unlikely to find the root cause for this issue, so it might actually be good to release it with the broken OpenSSL support just to debug this further to fix it.


js added on 2022-09-12 09:18:00:

This seems to reproduce it (for now):

ofhttp https://github.com/vector-im/element-web/releases/download/v1.11.4/element-v1.11.4.tar.gz

js added on 2023-06-11 15:55:28:

Can no longer be reproduced. Should be re-opened when a new reproducer is found.


js added on 2023-08-27 09:26:41:

This wasn't actually fixed: The problem only disappeared because OFHTTPClient switched to non-blocking sockets (which caused other problems). Reverting this change and using blocking sockets, this problem was back. However, it is now properly fixed by 38e105d056.