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

old_version0.1中的request->seperateTimer #147

Open
hellowack opened this issue Dec 6, 2022 · 1 comment
Open

old_version0.1中的request->seperateTimer #147

hellowack opened this issue Dec 6, 2022 · 1 comment

Comments

@hellowack
Copy link

加入线程池之前将Timer和request分离后,如果再次有新的请求任务在该fd上到来,这个请求任务好像没有设置定时器?

@hellowack
Copy link
Author

好像理解了,在handleRequest函数里,处理GET或POST请求后,如果处理成功了,最后会再次设置定时器,用来处理keep-alive情况下短时间再次到来的请求

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