Hi,
Frustrated as I've spent a lot of time debugging, but feel like I'm stuck now.
Trying to sync via SFTP (FTP behaves quite similarly..) on a local network to a samsung galaxy s4 device, NOT rooted. What seems to happen is during the upload of the large file, the phone (excuse me, not an android expert) goes to sleep? disables wifi? breaks the TCP connection?
It seems to be connected with pressing the 'sleep' button on the phone.
Here's what has been happening:
Looking at sftp server logs, we can get 2000 requests in on the transfer reliably. Sometimes it will continue to 5800. It never completes. It hits a point where it just stops transferring, sits a while doing nothing, and then the log says "debug1: read eof"; forced close; written ~128mb. Shortly after, the session is reopened and the partial file is deleted, and the sync attempt fails with the error "File transfer failed ... Unexpected server response null"
I've tried #*0011# , menu, wifi, and disable wifi power save mode; this doesn't fix it, although it slightly changed it, but it still hung.
------
however, as I was typing this, I noticed that the same file is over 45% synced on an autostarted sync.. (24000 parts and counting). Basically it just started working..
Is this a known issue with the galaxy s4 device series? As I type this, I'm surprised as this is the first correct full sync I've ever had.