diff --git a/lib/dalli/server.rb b/lib/dalli/server.rb
index <HASH>..<HASH> 100644
--- a/lib/dalli/server.rb
+++ b/lib/dalli/server.rb
@@ -59,7 +59,7 @@ module Dalli
       end
 
       connect
-      @sock
+      !!@sock
     rescue Dalli::NetworkError
       false
     end
make server#alive? always return a boolean value