support socket.abandon / socket.start , Issue #73

This commit is contained in:
Cloud Wu
2014-03-14 11:02:00 +08:00
parent c9358873da
commit c6efe2cd19
3 changed files with 43 additions and 22 deletions

View File

@@ -275,7 +275,7 @@ function socket.unlock(id)
end
-- abandon use to forward socket id to other service
-- you must call socket.accept(id) later in other service
-- you must call socket.start(id) later in other service
function socket.abandon(id)
local s = socket_pool[id]
if s and s.buffer then