Skip to content

Conversation

shreemaan-abhishek
Copy link
Contributor

No description provided.

preread_by_lua_block {
local ffi = require("ffi")
local sk = require("resty.apisix.stream.xrpc.socket").downstream.socket()
local sk = ngx.req.socket(true)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require("resty.apisix.stream.xrpc.socket").downstream.socket()

is equivalent to

ngx.req.socket(true)

minus the read, read_line and move methods that are not being used currently.

this is done in order to repro the bug with vanilla openresty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant