Skip to content
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

Crashes when send large data. #115

Open
tianzhuqiao opened this issue Jan 3, 2022 · 2 comments
Open

Crashes when send large data. #115

tianzhuqiao opened this issue Jan 3, 2022 · 2 comments

Comments

@tianzhuqiao
Copy link

Thanks for the great project. It works perfectly when sending small amount of data (e.g., < 1k). However, crashes when sending large data (e.g., ~1M bytes). Looks like the processSendDataTasks function used in sendData is recursive (e.g., on my phone, each call sends 182 bytes). Does it mean that it doesn't support sending large data (e.g., ~M bytes) (limited by the stack size)?

Why do we use a recursive function to send all data? Will a "for" loop work? Thanks!

internal func processSendDataTasks() {

@hrishav503
Copy link

did you find any solution sir?

@tianzhuqiao
Copy link
Author

Not really. Tried to replace the recursive function with a for loop; but for some unknown reason, it only runs intermittently.

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

No branches or pull requests

2 participants