Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1122] HTTPClient.abort() does not work if called right after send().

GitHub Issuen/a
ResolutionCannot Reproduce
Resolution Date2014-06-10T20:28:28.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, defect
ReporterSzymon Tomasz Stefanek
AssigneeRitu Agrawal


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.


  1. Ritu Agrawal 2014-05-20

    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.
  2. Ritu Agrawal 2014-06-10

    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.

JSON Source