linyacool / WebServer

A C++ High Performance Web Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

old_version0.1中的request->seperateTimer

hellowack opened this issue · comments

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

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