ObjFW  View Ticket

2024-05-22
20:13 Ticket [54c889e4e9] Support multiple concurrent requests in OFHTTPClient status still Open with 1 other change artifact: 592b3af349 user: js
00:14 Ticket [54c889e4e9]: 4 changes artifact: 551e6018ba user: js
2022-09-25
16:34 New ticket [54c889e4e9]. artifact: 3c6ae4bf96 user: js

Ticket UUID: 54c889e4e9c60b0cc3e1fac5c3d228688d1ee103
Title: Support multiple concurrent requests in OFHTTPClient
Status: Open Type: Feature Request
Severity: Important Priority: Low
Subsystem: Resolution: Open
Last Modified: 2024-05-22 20:13:26
Version Found In: Milestone:
User Comments:
js added on 2022-09-25 16:34:19:

Currently, OFHTTPClient only supports one in-flight request at a time. This makes it simple to reuse connections with keep-alive and pipeline requests. However, since OFHTTPClient is async now, this can be confusing to users. While the intent is to have multiple requests following each other in an async way, the async nature makes users expect they can also perform multiple simultaneous requests.

To make it possible to have multiple in-flight requests at once, state needs to be moved out of OFHTTPClient and the logic to reuse connections needs to be reworked entirely.

Changing this should not break the API or ABI, as the way it is being used now with one OFHTTPClient per concurrent request will keep working. Hence this change can be implemented post 1.0.