mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53: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,
|
||||
close = function ()
|
||||
socket.close(socket_id)
|
||||
tls.closefunc(tls_ctx)
|
||||
tls.closefunc(tls_ctx)()
|
||||
end,
|
||||
read = tls.readfunc(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 = {
|
||||
close = function ()
|
||||
socket.close(socket_id)
|
||||
tls.closefunc(tls_ctx)
|
||||
tls.closefunc(tls_ctx)()
|
||||
end,
|
||||
read = tls.readfunc(socket_id, tls_ctx),
|
||||
write = tls.writefunc(socket_id, tls_ctx),
|
||||
@@ -504,4 +504,4 @@ function M.close(id, code ,reason)
|
||||
end
|
||||
|
||||
|
||||
return M
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user