Skip to content

optimze: reduce the ngx.req.socket object size & reduce ngx.socket.udp object size.#917

Open
doujiang24 wants to merge 3 commits intoopenresty:masterfrom
doujiang24:sock
Open

optimze: reduce the ngx.req.socket object size & reduce ngx.socket.udp object size.#917
doujiang24 wants to merge 3 commits intoopenresty:masterfrom
doujiang24:sock

Conversation

@doujiang24
Copy link
Copy Markdown
Member

Seems we only need to save the timeout values to the ngx_http_lua_socket_tcp_upstream_t u for the connected request socket.
And the udp socket don't have to save the key for keepalive.

I hereby granted the copyright of the changes in this pull request
to the authors of this lua-nginx-module project.

Comment thread t/087-udp-socket.t Outdated
set $port $TEST_NGINX_MEMCACHED_PORT;
#set $port 1234;

content_by_lua '
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

New tests better use _by_lua_block {...} :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sorry for missing this, fixed :)

@mergify
Copy link
Copy Markdown

mergify Bot commented Jun 26, 2020

This pull request is now in conflict :(

@mergify
Copy link
Copy Markdown

mergify Bot commented Mar 20, 2023

This pull request is now in conflict :(

@mergify mergify Bot added the conflict label Mar 20, 2023
@mergify mergify Bot removed the conflict label May 10, 2023
@mergify
Copy link
Copy Markdown

mergify Bot commented May 10, 2023

This pull request is now in conflict :(

@mergify mergify Bot added the conflict label May 10, 2023
@mergify mergify Bot removed the conflict label Sep 23, 2023
@mergify
Copy link
Copy Markdown

mergify Bot commented Sep 23, 2023

This pull request is now in conflict :(

@mergify mergify Bot added the conflict label Sep 23, 2023
@mergify mergify Bot removed the conflict label Mar 6, 2024
@mergify
Copy link
Copy Markdown

mergify Bot commented Mar 6, 2024

This pull request is now in conflict :(

@mergify mergify Bot added the conflict label Mar 6, 2024
@mergify mergify Bot removed the conflict label May 27, 2024
@mergify
Copy link
Copy Markdown

mergify Bot commented May 27, 2024

This pull request is now in conflict :(

@mergify mergify Bot added the conflict label May 27, 2024
@mergify mergify Bot removed the conflict label Feb 13, 2025
@mergify
Copy link
Copy Markdown

mergify Bot commented Feb 13, 2025

This pull request is now in conflict :(

@mergify mergify Bot added the conflict label Feb 13, 2025
@mergify mergify Bot removed the conflict label Jul 9, 2025
@mergify
Copy link
Copy Markdown

mergify Bot commented Jul 9, 2025

This pull request is now in conflict :(

@mergify mergify Bot added the conflict label Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants