Titanium JIRA Archive
Appcelerator Community (AC)

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

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
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
Created2014-05-18T03:46:48.000+0000
Updated2016-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.

Comments

  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