bugfix: socketchannel order mode may blocked. (used by redis driver)

This commit is contained in:
Cloud Wu
2015-10-14 20:12:30 +08:00
parent 7486e53232
commit c1c032eab4
4 changed files with 46 additions and 40 deletions

View File

@@ -265,7 +265,7 @@ local function suspend(tid, name, qtype)
co = coroutine.running(),
}
request_pool[tid] = req
skynet.wait()
skynet.wait(req.co)
local answers = request_pool[tid].answers
request_pool[tid] = nil
assert(answers, "no ip")