Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE -- narrow down #99

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

shreemaan-abhishek
Copy link
Member

No description provided.

--- stream_server_config
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
Member 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