WebServer icon indicating copy to clipboard operation
WebServer copied to clipboard

old_version0.1中的request->seperateTimer

Open hellowack opened this issue 2 years ago • 1 comments

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

hellowack avatar Dec 06 '22 06:12 hellowack

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

hellowack avatar Dec 07 '22 11:12 hellowack