-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
downloadFile()
: debug readTimeout
option handling, and add related documentation
#33
Comments
Hi @jobpaardekooper , I have no idea — it was inherited from the original RNFS code, which does not give much details on it in its README: |
That is what I had guessed. Thanks for the reply! |
@jobpaardekooper I had a very brief look at the code. I see on Android Beyond that, I think, it should be debugged what happens there. I imagine, if the timeout is hit, an exception will be thrown at some point in that So, if you have interest in it, and time to invest, perhaps you can just run your test project from Android Studio, in Debug mode, setting a bunch of breakpoints in the methods I referred to above, and check what happens there? My current guess, the code should be updated to correctly message thrown exceptions to the TS side. |
Thanks a lot for digging a bit deeper. I don't have much time to debug it right now. Also, for now I have switched back to the original RNFS. I know this library will be the future and would like to help improve it once I find some more time. But currently issue #24 is really preventing me from using this. My app requires the user to select one out of a few files to download before they can start using the app. It seems that this bug is also effecting me and it is especially prevalent on first launch. It completely brakes my apps usability sadly so I have gone back for now. I know its not sustainable though. Thanks for all the effort and I will likely be back using this when that gets fixed or I have more time to investigate that issue. |
downloadFile()
: debug readTimeout
option handling, and add related documentation
The
DownloadFileOptionsT
includes the optionreadTimeout
. It is a number but not much further information is given about it. Is it in milliseconds, seconds or minutes? From taking a quick look at the code it seems to be milliseconds? Nothing really happens when I set it and make the download hang by turning of the server half way through.What happens when the timeout is reached? Should it throw an error? Or something else? What exactly would trigger this timeout. Would it be triggered when no bytes are read from the connection for x amount of time?
The text was updated successfully, but these errors were encountered: