[erlang-questions] better HTTP client?

Bob Ippolito bob@REDACTED
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.
https://github.com/esl/lhttpc/blob/master/src/lhttpc.erl#L431


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...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130908/5bb2d310/attachment.htm>


More information about the erlang-questions mailing list