check mongo reply data stream

This commit is contained in:
Cloud Wu
2014-06-09 17:43:40 +08:00
parent f92fc153e4
commit bf6501f2ee
3 changed files with 19 additions and 3 deletions

View File

@@ -98,7 +98,7 @@ function mongo.client( conf )
host = obj.host,
port = obj.port,
response = dispatch_reply,
auth = mongo_auth(conf),
auth = mongo_auth(obj),
}
setmetatable(obj, client_meta)
obj.__sock:connect(true) -- try connect only once