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

breaking: reduce combined response cutoff to 16 MB #987

Merged
merged 4 commits into from
Jun 9, 2020

Conversation

brody4hire
Copy link

@brody4hire brody4hire commented Jun 5, 2020

Updated

Platforms affected

Android

Motivation and Context

see #986 - I think this is needed to avoid crash with JSON memory issue in case of a large number of moderately-sized plugin response messages

Note that this would affect the size of combined responses sent to the JavaScript and not the maximum size of any individual response message.

I hope we can consider this change for cordova-android 9.0.0 which should be coming in the near future.

Description

note that this does not completely resolve the issues I raised in #986 due to the ugly warning messages still lurking

Testing

Remaining quirks

As I said in #986:

I hope someone will have time to get to the bottom of these remaining quirks, someday.

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
  • I've updated the documentation if necessary

@brody4hire brody4hire force-pushed the reduce-response-payload-size branch from f021cb1 to 29795a9 Compare June 5, 2020 04:04
@codecov-commenter
Copy link

codecov-commenter commented Jun 5, 2020

Codecov Report

Merging #987 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #987   +/-   ##
=======================================
  Coverage   68.11%   68.11%           
=======================================
  Files          21       21           
  Lines        1866     1866           
=======================================
  Hits         1271     1271           
  Misses        595      595           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 305cb2c...edcdf35. Read the comment docs.

@brody4hire brody4hire changed the title breaking: reduce response payload size to 16 MB breaking: reduce max response payload to 16 MB Jun 9, 2020
@brody4hire brody4hire changed the title breaking: reduce max response payload to 16 MB breaking: reduce combined response cutoff to 16 MB Jun 9, 2020
@brody4hire brody4hire force-pushed the reduce-response-payload-size branch from 1b16914 to 2ba8645 Compare June 9, 2020 22:35
Copy link
Contributor

@purplecabbage purplecabbage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@brody4hire brody4hire merged commit dead4b4 into apache:master Jun 9, 2020
@brody4hire brody4hire deleted the reduce-response-payload-size branch June 9, 2020 23:49
@brody4hire
Copy link
Author

Thanks to @purplecabbage for the quick review

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

Successfully merging this pull request may close these issues.

3 participants