Tomcat源码解读--代码走读之(四十八中的2-3)setAsyncSupported(五十一)

request.setAsyncSupported(connector.getService().getContainer().getPipeline().isAsyncSupported())

1、其中connector.getService().getContainer().getPipeline().isAsyncSupported()的方法内容如下。



 

是走StandardPipelineisAsyncSupported方法,其中basicStandardEngineValue其中里面的asyncSupported属性为true是在构建对象的时候设置的。

2、setAsyncSupported代码比较简单,设置值为true。



 

猜你喜欢

转载自83519144.iteye.com/blog/1887021