akamai / hface

Hackable HTTP/{1,2,3} {client,server,proxy}
https://hface.readthedocs.io
Apache License 2.0
30 stars 3 forks source link

Enhance connection pooling #12

Open mila opened 1 year ago

mila commented 1 year ago

hface client maintains pools of connections to different hosts, but I am not sure that the pooling properly handles app possible. circumstances:

mila commented 1 year ago

HTTPProtocol implementations have is_available() and has_expired() methods. I am not sure that this is the best API. If we use methods like this, we should make sure that they reflect events consumed from next_event(), not just buffered based on received data.