[AC-1122] HTTPClient.abort() does not work if called right after send().
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2014-06-10T20:28:28.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, defect |
Reporter | Szymon Tomasz Stefanek |
Assignee | Ritu Agrawal |
Created | 2014-05-18T03:46:48.000+0000 |
Updated | 2016-03-08T07:37:28.000+0000 |
Description
On Android calling HTTPClient.abort() right after send() does not abort the transfer. It continues running and it even triggers all the callbacks (ondatastream, onload etc...).
A simple snippet :
var oXHR = Ti.Network.createHTTPClient(
{
onload: function(e){ ... },
});
oXHR.open('GET',url);
oXHR.send();
oXHR.abort();
The transfer will continue as if abort() wasn't called.
Thanks for providing the code snippet but we need a runnable test case to reproduce the issue. Please provide a simple test case so that I can see the issue you are seeing.
Resolving the ticket as we cannot reproduce the issue in house and the reporter has not provided the complete test case. We will be happy to reopen the ticket once we have the test case to reproduce the issue.