diff --git a/ext/hiredis_ext/connection.c b/ext/hiredis_ext/connection.c index 3080667..865c842 100644 --- a/ext/hiredis_ext/connection.c +++ b/ext/hiredis_ext/connection.c @@ -30,7 +30,7 @@ static void parent_context_mark(redisParentContext *pc) { // volatile until rb_gc_mark volatile VALUE root; if (pc->context && pc->context->reader) { - root = (VALUE)redisReplyReaderGetObject(pc->context->reader); + root = (VALUE)redisReaderGetObject(pc->context->reader); if (root != 0 && TYPE(root) == T_ARRAY) { rb_gc_mark(root); } diff --git a/test/connection_test.rb b/test/connection_test.rb index 33fa32b..513d520 100644 --- a/test/connection_test.rb +++ b/test/connection_test.rb @@ -82,7 +82,7 @@ def test_connect_wrong_host ex = assert_raises RuntimeError do hiredis.connect("nonexisting", 6379) end - assert ex.message =~ /(can't resolve)|(name or service not known)/i + assert ex.message =~ /(can't resolve)|(name or service not known)|(nodename nor servname provided, or not known)/i end def test_connect_wrong_port diff --git a/vendor/hiredis b/vendor/hiredis index 0107560..6850306 160000 --- a/vendor/hiredis +++ b/vendor/hiredis @@ -1 +1 @@ -Subproject commit 010756025e8cefd1bc66c6d4ed3b1648ef6f1f95 +Subproject commit 685030652cd98c5414ce554ff5b356dfe8437870