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 0a6a71a commit ca3e933Copy full SHA for ca3e933
lib/resty/core/socket_tcp.lua
@@ -8,6 +8,7 @@ local FFI_ERROR = base.FFI_ERROR
8
local FFI_DONE = base.FFI_DONE
9
local FFI_OK = base.FFI_OK
10
local FFI_AGAIN = base.FFI_AGAIN
11
+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
@@ -85,6 +86,10 @@ local function tlshandshake(self, options)
85
86
and 1 or 0,
87
errmsg)
88
89
+ if rc == FFI_NO_REQ_CTX then
90
+ error("no request ctx found", 2)
91
+ end
92
+
93
::again::
94
95
if rc == FFI_ERROR then
0 commit comments