Skip to content

DATAREDIS-286 - Avoid overflow in JedisConnection#expire / #pexpire. #52

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

Closed
wants to merge 3 commits into from

Conversation

thomasdarimont
Copy link

Workaround Jedis issue redis/jedis#575.
We now delegate calls to expire(...) to pExpire(...) in case the seconds parameter is > than Integer.MAX_VALUE.

thomasdarimont pushed a commit that referenced this pull request Mar 21, 2014
Workaround Jedis issue redis/jedis#575.
We now delegate calls to expire(...) to pExpire(...) in case the seconds parameter is > than Integer.MAX_VALUE.

Original pull request: #52.
@neurite
Copy link

neurite commented Mar 21, 2014

Thanks for making the fix so quickly! It makes sense and looks good to me.

Thomas Darimont and others added 2 commits March 22, 2014 22:41
Workaround Jedis issue redis/jedis#575.
We now delegate calls to expire(...) to pExpireAt(...) in case the seconds parameter is > than Integer.MAX_VALUE.
We query the server time to compute the new expiration date.

Original pull request: #52.
Added unit test to issue as separate commit.
thomasdarimont pushed a commit that referenced this pull request Mar 24, 2014
Workaround Jedis issue redis/jedis#575.
We now delegate calls to expire(...) to pExpireAt(...) in case the seconds parameter is > than Integer.MAX_VALUE.
We query the server time to compute the new expiration date.

Original pull request: #52.
thomasdarimont pushed a commit that referenced this pull request Mar 24, 2014
Workaround Jedis issue redis/jedis#575.
We now delegate calls to expire(...) to pExpireAt(...) in case the seconds parameter is > than Integer.MAX_VALUE.
We query the server time to compute the new expiration date.

Original pull request: #52.
@christophstrobl christophstrobl deleted the issue/DATAREDIS-286 branch March 24, 2014 11:01
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