ObjFW  View Ticket

2023-08-27
09:26 Fixed ticket [5ad1ca4257]: OFTLSStream with OpenSSL implementation sometimes hangs plus 4 other changes artifact: 22afd23f09 user: js
2023-06-11
15:55 Closed ticket [5ad1ca4257]. artifact: af2c3bb089 user: js
2022-09-12
09:18 Ticket [5ad1ca4257]: 4 changes artifact: cde320a655 user: js
09:05 New ticket [5ad1ca4257]. artifact: 79ae673c7c user: js

Ticket UUID: 5ad1ca4257d66758f9e7a99308aef8dbddc18ae0
Title: OFTLSStream with OpenSSL implementation sometimes hangs
Status: Fixed Type: Code_Defect
Severity: Severe Priority: High
Subsystem: Resolution: Fixed
Last Modified: 2023-08-27 09:26:41
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].