【从入门到放弃-SpringBoot】SpringBoot源码分析-请求过程
前言
前文【从入门到放弃-SpringBoot】SpringBoot源码分析-WebServer中以SpringBoot中内嵌的Tomcat为例了解了webserver的启动过程。
本文将分析下一条请求在SpringBoot中,从接受到返回都经历了那些过程。
Acceptor
在上文最后的connector启动时,会开始acceptor线程等待接收请求。
Acceptor::run
public void run() {
int errorDelay = 0;
// Loop until we receive a shutdown command
while (endpoint.isRunning()) {
// Loop if endpoint is paused
while (
