diff --git a/HISTORY.md b/HISTORY.md index 7a2ecf4a..1deddf51 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -4,6 +4,7 @@ Dev version * Add optional TCP_NODELAY support * Add worker thread weight * Add skynet.queue +* Bugfix: socketchannel v0.4.1 (2014-7-7) ----------- diff --git a/lualib/socketchannel.lua b/lualib/socketchannel.lua index 32615ac0..e6a061f0 100644 --- a/lualib/socketchannel.lua +++ b/lualib/socketchannel.lua @@ -135,6 +135,9 @@ local function dispatch_by_order(self) if result ~= socket_error then errmsg = result_ok end + self.__result[co] = socket_error + self.__result_data[co] = errmsg + skynet.wakeup(co) wakeup_all(self, errmsg) end end