cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Néville Dubuis (JIRA) <>
Subject [jira] [Created] (CB-12400) [iOS] file transfer lose connection after several download on iOS 10
Date Thu, 26 Jan 2017 10:53:24 GMT
Néville Dubuis created CB-12400:

             Summary: [iOS] file transfer lose connection after several download on iOS 10

                 Key: CB-12400
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin File Transfer
    Affects Versions: 1.6.1
         Environment: iOS 10+
            Reporter: Néville Dubuis


On downloading files from Amazon S3, after several download (not, always the same number or
time) the plugin return errors when downloading existing files. the plugin return error code
3, with void http_status and body and the native code return: "network connection was lost".
Once this error happens once, it always happens then on every file transfer download (I didn't
try with the upload, but i suspect the issue is the same) until we quit the app and reopen
it. We check the network connection, it was fine on every failed attempt, we were even able
to call an API before and after the download with $http and it worked just fine. 

So after digging into this issue and not finding any clue, we thought it might be something
directly on the http or tcp protocol. So we setup an https proxy (with burp suite), to see
the connection and what was happening. It appears that the issue never appears when using
the https proxy. So we switch back to normal wifi connection, and then the error happened
again at this we change back  the connection to the proxy and we were able to download our
files without restarting the app. 

It's seems that something on HTTPS is not working correctly (ciphers, TLS, version, keep alive
?) . We implement those downloads with cordova-plugin-background-download (
and we have no issue with this one. The problem might come for the deprecated NSURLConnection
that does not support something new on the https protocol that is supported by NSURLSession.

As my mother tongue is not english, I hope everything is understandable, if it's not i can
try to explain it better ;)

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message