Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@arcivanov
Copy link

Some rudimentary tests

@arcivanov arcivanov force-pushed the access_by_lua branch 2 times, most recently from 42a195d to 7b9c916 Compare November 9, 2020 09:15
src/ngx_stream_lua_accessby.c Outdated Show resolved Hide resolved
@arcivanov
Copy link
Author

@agentzh @xiaocang @tangsty please review and merge.
The failures appear in SSL and unrelated to the changes.

@arcivanov
Copy link
Author

@agentzh @xiaocang @tangsty bump?

@arcivanov
Copy link
Author

1 similar comment
@arcivanov
Copy link
Author

@edevil
Copy link

edevil commented Dec 6, 2020

This would also be useful for me since I want to resolve a name to be used in balancer_by_lua_block.

@arcivanov
Copy link
Author

1 similar comment
@arcivanov
Copy link
Author

@xiaocang
Copy link
Contributor

@arcivanov Got it, I'll look into it.

TODO
--- SKIP
--- stream_server_config
access_by_lua_block {
Copy link
Member

Choose a reason for hiding this comment

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

Can we add a test that using both preread and access phases?
Does the access phase have the limitation below in the preread phase?

However, keep in mind that calling the receive() method of the request socket will consume the data from the buffer and such consumed data will not be seen by handlers further down the chain.

Some rudimentary tests

Requested cleanup of `#if 1`

Try fixing tests
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.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.