<div dir="ltr">Are you really sure about that? lhttpc:request/9 uses spawn_link, so it should abort the request as soon as the callee dies.<div><a href="https://github.com/esl/lhttpc/blob/master/src/lhttpc.erl#L431">https://github.com/esl/lhttpc/blob/master/src/lhttpc.erl#L431</a><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Sep 8, 2013 at 4:45 PM, Chris King <span dir="ltr"><<a href="mailto:colanderman@gmail.com" target="_blank">colanderman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>


<div><div class="im">On Sun, 08 Sep 2013 19:33:05 -0400, Bob Ippolito <<a href="mailto:bob@redivi.com" target="_blank">bob@redivi.com</a>> wrote:<br><br><blockquote style="margin:0 0 0.80ex;border-left:#0000ff 2px solid;padding-left:1ex">
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.<br>
</blockquote><br></div>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.)<br>
</div></blockquote></div><br></div>