I think this way only kills the client process. It wont kill the server
process.  Maybe you can run the long time task in a separated link process.
When the connection is closed by the client, the process on the server side
will be also closed. I don't test it, I'm not sure it will work or not.

Martin Torhage <[email protected]>于2014年1月21日星期二写道:

> You simply terminate the TCP connection. In my tests I kill the curl
> processes performing the requests. In a browser you can do either:
> * Close the browser tab or the browser.
> * Hit the reload button.
> * Abort AJAX requests by calling the 'abort' method on the XMLHttpRequest.
>
> / Martin
>
>
> On Tue, Jan 21, 2014 at 6:09 AM, Cuong Thai 
> <[email protected]<javascript:_e({}, 'cvml', '[email protected]');>
> > wrote:
>
>> Hi all,
>>
>> I don't know how to cancel request to reproduce. I also curious about
>> this.
>> As I know Django throws Broken Pipe exception when server is handling
>> request if client cancels it. Loïc Hoguin, the author of cowboy server,
>> answers me that it happens similarly with cowboy.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:_e({},
> 'cvml', 'chicagoboss%[email protected]');>.
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/CAD7D%3D90%2By8RkAk8e4dKyEE50CwgCeedsbT%3DHMYghoQ65QswR5w%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/CA%2BooNtzc-yTidSz_%3Do6MZn%2Bv6f%2BVd5tL2eAvPo9QwL%2Bt5GrmAg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to