edicl / drakma

HTTP client written in Common Lisp
http://edicl.github.io/drakma/
249 stars 58 forks source link

Add connection pool? #122

Open daewok opened 2 years ago

daewok commented 2 years ago

Would there be interest in adding connection pool support to Drakma?

I had plans to create an external connection pool that wrapped http-request and passed it a :stream. But I realized this is ~impossible to get right when using a proxy, as Drakma will only send the full URI if :stream is nil. Plus there are some other fiddly bits that are hard to get right externally, like dealing with redirects.

I figured I'd see if there was interest in adding a connection pool directly to Drakma instead of continuing to bang my head against the wall to get an external pool to handle all the corner cases correctly.

ajberkley commented 2 years ago

Feel free to steal the connection-cache from dexador... https://github.com/fukamachi/dexador/blob/master/src/connection-cache.lisp