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

HttpServer Keep-Alive #1835

Closed
ENMOJY opened this issue May 15, 2024 · 2 comments
Closed

HttpServer Keep-Alive #1835

ENMOJY opened this issue May 15, 2024 · 2 comments

Comments

@ENMOJY
Copy link

ENMOJY commented May 15, 2024

When I try to use http long connection, I set the timeout and maximum number to 10, the response received by my browser is still "Connection:close"

After I set the breakpoint, I found that "req.get_header_value("Connection") == "close"" is FALSE, but the return value of "req.get_header_value("Connection")" is " ". Why does "==" behave like this?

image

@yhirose
Copy link
Owner

yhirose commented Jun 2, 2024

I don't know your situation fully though, close_connection could be true.

@yhirose yhirose closed this as completed Jun 2, 2024
@ENMOJY
Copy link
Author

ENMOJY commented Jun 10, 2024

Thanks,but close_connection is false,and std::string's ==' return true

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

No branches or pull requests

2 participants