add nodelay option in socketchannel

This commit is contained in:
Cloud Wu
2014-10-13 20:58:41 +08:00
parent 883757b936
commit a074cd79bd
3 changed files with 8 additions and 0 deletions

View File

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