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

nil as key in :set() hangs the connection #49

Closed
Habbie opened this issue Nov 10, 2016 · 2 comments
Closed

nil as key in :set() hangs the connection #49

Habbie opened this issue Nov 10, 2016 · 2 comments

Comments

@Habbie
Copy link

Habbie commented Nov 10, 2016

Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> redis =require 'redis'
> r = redis.connect()
> =r:get('foo')
bar
> r:set(nil, 'bar')

it never returns. On the wire we see

*3
$3
SET
$3
bar

i.e. the key is simply skipped and Redis is waiting for the third argument.

Version is 2.0.4-1 from luarocks.

@Habbie
Copy link
Author

Habbie commented Nov 10, 2016

v2.0.5:

  • Fixed command serialization when command arguments contain nil values.

@Habbie Habbie closed this as completed Nov 10, 2016
@Habbie
Copy link
Author

Habbie commented Dec 7, 2016

(For reference: duplicate of #29)

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

1 participant