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

bugfix: the connection won't be closed normally when set arg[1] = "" before arg[2] = true #2302

Merged
merged 8 commits into from
Apr 11, 2024

Conversation

@monkeyDluffy6017
Copy link
Contributor Author

The ci error seems it has nothing to do with my changes

@monkeyDluffy6017
Copy link
Contributor Author

@zhuizhuhaomeng @spacewander please help to review

GET /t
--- response_body
--- no_error_log
[error]
Copy link
Contributor

Choose a reason for hiding this comment

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

[alert]
[crit]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

GET /t
--- response_body
--- no_error_log
[error]
Copy link
Contributor

Choose a reason for hiding this comment

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

[alert]
[crit]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -34,7 +34,7 @@ log_level('debug');

repeat_each(2);

plan tests => repeat_each() * (blocks() * 5);
plan tests => repeat_each() * (blocks() * 5 - 4);
Copy link
Member

Choose a reason for hiding this comment

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

Better to use a positive number, so the plan number won't be negative when --- ONLY is given.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

/* the "in" chain cannot be NULL and we set the "last_buf" or
* "last_in_chain" flag in the last buf of "in" */
/* the "in" chain cannot be NULL except that we set arg[1] = ""
* before arg[2] = true*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* before arg[2] = true*/
* before arg[2] = 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.

Done

@zhuizhuhaomeng zhuizhuhaomeng merged commit 6c00bd4 into openresty:master Apr 11, 2024
2 of 3 checks passed
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.

bug: the connection won't be closed normally when set arg[1] = ""
3 participants