[erlang-questions] better HTTP client?
Mon Sep 9 03:44:31 CEST 2013
Are you really sure about that? lhttpc:request/9 uses spawn_link, so it
should abort the request as soon as the callee dies.
On Sun, Sep 8, 2013 at 4:45 PM, Chris King <colanderman@REDACTED> wrote:
> On Sun, 08 Sep 2013 19:33:05 -0400, Bob Ippolito <bob@REDACTED> wrote:
> Async cancelable and synchronous are basically isomorphic in Erlang, just
> start a process to wrap the sync call and kill it if you want to cancel.
> Not quite -- the HTTP request remains outstanding and blocks the request
> queue. I need to clear those requests out, as I need to process new
> requests ASAP. This should be handled by the HTTP client itself, as only
> it knows how many requests it has actually sent to the server. (The
> alternative would be for the HTTP client to expose a crediting mechanism;
> though this would complicate the application.)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions