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

Fetch SERVER_MAX_VALUE_LENGTH from server #143

Open
ramnes opened this issue Apr 30, 2018 · 2 comments
Open

Fetch SERVER_MAX_VALUE_LENGTH from server #143

ramnes opened this issue Apr 30, 2018 · 2 comments

Comments

@ramnes
Copy link

ramnes commented Apr 30, 2018

Hey there,

Thanks for the neat library.

Today I've been hit by memcache.SERVER_MAX_VALUE_LENGTH, which is statically defined, whereas it could be fetched from the server with item_size_max from stats settings.

Would that be a feature of your interest?

@drhagen
Copy link

drhagen commented Mar 22, 2019

I tested memcache with this feature completely removed. Everything seemed to work fine. If an object that is too large is sent, the server returns an error and memcache handles it appropriately. I do not think this does not need to be handled on the python side at all.

@StevenMapes
Copy link

A simple example of this issue is:

Set up a memcached server with a 5MB item_size_max and then trying saving something larger than 1MB. It'll fail.

Then edit memcache.SERVER_MAX_VALUE_LENGTH and mke that 5MB or more and it will work

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

3 participants