mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
Call tls.closefunc
This commit is contained in:
@@ -315,7 +315,7 @@ local function _new_client_ws(socket_id, protocol)
|
|||||||
websocket = true,
|
websocket = true,
|
||||||
close = function ()
|
close = function ()
|
||||||
socket.close(socket_id)
|
socket.close(socket_id)
|
||||||
tls.closefunc(tls_ctx)
|
tls.closefunc(tls_ctx)()
|
||||||
end,
|
end,
|
||||||
read = tls.readfunc(socket_id, tls_ctx),
|
read = tls.readfunc(socket_id, tls_ctx),
|
||||||
write = tls.writefunc(socket_id, tls_ctx),
|
write = tls.writefunc(socket_id, tls_ctx),
|
||||||
@@ -361,7 +361,7 @@ local function _new_server_ws(socket_id, handle, protocol)
|
|||||||
obj = {
|
obj = {
|
||||||
close = function ()
|
close = function ()
|
||||||
socket.close(socket_id)
|
socket.close(socket_id)
|
||||||
tls.closefunc(tls_ctx)
|
tls.closefunc(tls_ctx)()
|
||||||
end,
|
end,
|
||||||
read = tls.readfunc(socket_id, tls_ctx),
|
read = tls.readfunc(socket_id, tls_ctx),
|
||||||
write = tls.writefunc(socket_id, tls_ctx),
|
write = tls.writefunc(socket_id, tls_ctx),
|
||||||
@@ -504,4 +504,4 @@ function M.close(id, code ,reason)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|||||||
Reference in New Issue
Block a user