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

sqlops: Increase size of static escape buffer #899

Closed
wants to merge 1 commit into from

Conversation

zecke
Copy link
Contributor

@zecke zecke commented Dec 22, 2016

The code assumes that all characters require escaping and the
maximum input string length right now is 1023. When the ss7ops
module is used the length of a IAM is longer than this. Increase
the static buffer to 8k. This increases the memory usage of each
process by 7168 bytes.

The code assumes that all characters require escaping and the
maximum input string length right now is 1023. When the ss7ops
module is used the length of a IAM is longer than this. Increase
the static buffer to 8k. This increases the memory usage of each
process by 7168 bytes.
@miconda
Copy link
Member

miconda commented Dec 23, 2016

Maybe making the size a modparam and allocating the buffer in mod_init will make it more flexible and easier to tune for larger buffer needs.

miconda added a commit that referenced this pull request Jan 8, 2017
@miconda
Copy link
Member

miconda commented Jan 8, 2017

Alternative implementation pushed to master branch.

@miconda miconda closed this Jan 8, 2017
@zecke zecke deleted the fix-sql-escape-len branch January 28, 2017 23:28
@zecke
Copy link
Contributor Author

zecke commented Jan 28, 2017

Sorry, I didn't notice the feedback and just rebased my branch. Yes. Your approach to make it runtime configurable is a lot better! Thank you.

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