Tomcat源码解读--代码走读之(四十八中的2-3)setAsyncSupported(五十一)
request.setAsyncSupported(connector.getService().getContainer().getPipeline().isAsyncSupported())
1、其中connector.getService().getContainer().getPipeline().isAsyncSupported()的方法内容如下。
是走StandardPipeline的isAsyncSupported方法,其中basic是StandardEngineValue其中里面的asyncSupported属性为true是在构建对象的时候设置的。
2、setAsyncSupported代码比较简单,设置值为true。