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

Add a string concatenation to _read_body() #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

msestak
Copy link

@msestak msestak commented Sep 2, 2016

I found that this fixes random breakage of results while selecting
from a database.

Fixes issue #2

String concatenation may not be best solution for large selects because
it builds large variable in memory (propose better solution if available).

I found that this fixes random breakage of results while selecting
from a database.

Fixes issue elcamlost#2

String concatenation may not be best solution for large selects because
it builds large variable in memory (propose better solution if available).
@hulponot
Copy link

Without this fix, it's impossible to use module with large responses. This changes definitely should be on CPAN

@msestak
Copy link
Author

msestak commented Nov 8, 2016

More elegant solution is offered in this thread:
http://www.perlmonks.org/?node_id=1175544
and I updated this pull request to reflect that.

Solution contributed by Corion at http://www.perlmonks.org/?node_id=1175544
This is low memory solution.

Warning added in case that read_entity_body() returns an empty string
but $remainder still has content. In my opinion this shouldn't happen,
but at least we will see it.
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.

2 participants