We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04b2e5b commit e3c7f85Copy full SHA for e3c7f85
lib/resty/core/socket_tcp.lua
@@ -12,7 +12,6 @@ local FFI_NO_REQ_CTX = base.FFI_NO_REQ_CTX
12
local get_request = base.get_request
13
local error = error
14
local assert = assert
15
-local getmetatable = getmetatable
16
local type = type
17
local pcall = pcall
18
local select = select
@@ -178,12 +177,8 @@ do
178
177
error(sock, 2)
179
end
180
181
- local mt = getmetatable(sock)
182
-
183
- mt.tlshandshake = tlshandshake
184
- mt.sslhandshake = sslhandshake
185
186
- ngx.socket.tcp = old_socket_tcp
+ sock.tlshandshake = tlshandshake
+ sock.sslhandshake = sslhandshake
187
188
return sock
189
0 commit comments