File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ ngx_http_lua_ffi_socket_tcp_getfd(ngx_http_request_t *r,
7575
7676ngx_lua_ffi_socket_tcp_getoption = C .ngx_http_lua_ffi_socket_tcp_getoption
7777ngx_lua_ffi_socket_tcp_setoption = C .ngx_http_lua_ffi_socket_tcp_setoption
78- ngx_lua_ffi_socket_getfd = ngx_http_lua_ffi_socket_tcp_getfd
78+ ngx_lua_ffi_socket_getfd = C . ngx_http_lua_ffi_socket_tcp_getfd
7979
8080elseif subsystem == ' stream' then
8181
@@ -97,7 +97,7 @@ ngx_stream_lua_ffi_socket_tcp_getfd(ngx_stream_lua_request_t *r,
9797
9898ngx_lua_ffi_socket_tcp_getoption = C .ngx_stream_lua_ffi_socket_tcp_getoption
9999ngx_lua_ffi_socket_tcp_setoption = C .ngx_stream_lua_ffi_socket_tcp_setoption
100- ngx_lua_ffi_socket_getfd = ngx_stream_lua_ffi_socket_tcp_getfd
100+ ngx_lua_ffi_socket_getfd = C . ngx_stream_lua_ffi_socket_tcp_getfd
101101end
102102
103103
@@ -203,7 +203,7 @@ local function getfd(cosocket)
203203
204204 local u = get_tcp_socket (cosocket )
205205
206- local fd = C . ngx_stream_lua_ffi_socket_tcp_getfd (r , u , errmsg )
206+ local fd = ngx_lua_ffi_socket_getfd (r , u , errmsg )
207207 if (fd < 0 ) then
208208 return nil , ffi_str (errmsg [0 ])
209209 end
You can’t perform that action at this time.
0 commit comments