ObjFW  Ticket Change Details

Overview

Artifact ID: 3c6ae4bf963bffb23eb6b4e0e55d1788c75b89c45fcc854a6702a58a93d8a281
Ticket: 54c889e4e9c60b0cc3e1fac5c3d228688d1ee103
Support multiple concurrent requests in OFHTTPClient
User & Date: js on 2022-09-25 16:34:19
Changes

  1. icomment:
    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.
    
  2. login: "js"
  3. milestone changed to: "none"
  4. mimetype: "text/x-markdown"
  5. priority changed to: "Low"
  6. severity changed to: "Important"
  7. status changed to: "Open"
  8. title changed to:
    Support multiple concurrent requests in OFHTTPClient
    
  9. type changed to: "Feature_Request"