Skip to content

EXPIRE, SETEX, should detect time overflows #86

@antirez

Description

@antirez

Moving this issue here from Google Code -> http://code.google.com/p/redis/issues/detail?id=660

How to trigger the bug (cut & paste from google code):

pie@reactor ~ % irb
irb(main):001:0> Time.now.to_i + 1000
=> 1315722345

pie@reactor ~ % redis-cli -p 5011
redis 127.0.0.1:5011> setex foo 1315722345 1
OK
redis 127.0.0.1:5011> get foo
(nil)
redis 127.0.0.1:5011> setex foo 1000 1
OK
redis 127.0.0.1:5011> get foo
"1"

Using redis 2.2.12 on freebsd 8.2. This is a 32-bit system.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions