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

【已解决】主状态机解析完消息体以后,m_checked_idx和m_start_line指向什么位置 #267

Open
Csorasky opened this issue Mar 21, 2024 · 0 comments

Comments

@Csorasky
Copy link

Csorasky commented Mar 21, 2024

在一个post请求结束后,m_checked_idx指向消息体首字节,m_start_line指向收到报文的最后一个字节的下一个字节,两者不相等。
收到下一个get/post请求后,会执行users[connfd].init,m_checked_idx和m_start_line都初始化为0

@Csorasky Csorasky changed the title 主状态机解析完消息体以后,m_checked_idx和m_start_line指向什么位置 【已解决】主状态机解析完消息体以后,m_checked_idx和m_start_line指向什么位置 Mar 22, 2024
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

1 participant