org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run()
处理socket线程的线程池为:
org.apache.tomcat.util.threads.ThreadPoolExecutorsocket处理线程:
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run()socket处理方法:
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler(AbstractProtocol$AbstractConnectionHandler<S,P>).process(SocketWrapper<S>, SocketStatus)
Protocol process使用Processer:
org.apache.coyote.http11.Http11Processor.process(socket)
Parse Request line: org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(boolean)Parse Headers:
org.apache.coyote.http11.InternalInputBuffer.parseHeaders()Prepare request
service request: org.apache.catalina.connector.CoyoteAdapter.service(Request, Response)当第一次调用request.getParameters()的时候,才分析message body.