bugfix: socket channel reconnect

This commit is contained in:
Cloud Wu
2014-04-24 23:08:35 +08:00
parent b65757d8bf
commit f7783d3881
4 changed files with 49 additions and 46 deletions

View File

@@ -39,9 +39,7 @@ local client_meta = {
return "[mongo client : " .. self.host .. port_string .."]"
end,
__gc = function(self)
self:disconnect()
end
-- DO NOT need disconnect, because channel will shutdown during gc
}
local mongo_db = {}