Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

Can't download file which is bigger than 24K when using NIO #1

Closed
GoogleCodeExporter opened this issue Mar 14, 2015 · 2 comments
Closed

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. push one big file to emulator
2. right click the uploaded file and save as...
3. we can just download 24K size content

What is the expected output? What do you see instead?
Full content should be download, 
But just download 24K

What version of the product are you using? On what operating system?


Please provide any additional information below.
I used SelectChannelConnector as connect,
But if I use SocketConnector, full content can be download.

Huadong
liuhuadong78@gmail.com


Original issue reported on code.google.com by liuhuado...@gmail.com on 4 May 2008 at 2:08

@GoogleCodeExporter
Copy link
Author

Hi Huadong,

Can you obtain a http packet trace of the failing download? Something like 
Wireshark
would be good to use.

thanks
Jan

Original comment by janb.web...@gmail.com on 4 May 2008 at 2:25

@GoogleCodeExporter
Copy link
Author

The problem appears to be that android has problems using NIO direct buffers.
Disabling their use allows the file to be downloaded.

Note that this will be less performant, so the ideal solution would be for 
android to
fix the problem.

We will retry the direct buffers when new android releases are available to see 
if it
is fixed. As of 1.0_rc1 it is not.

For now the workaround at least means large files can be downloaded.

Original comment by janb.web...@gmail.com on 26 Sep 2008 at 5:50

  • Changed state: Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant