2013年9月22日

tomcat源码分析 Acceptor run 过程

摘要: org.apache.tomcat.util.net.JIoEndpoint.Acceptor1、调用countUpOrAwaitConnection,阀门数加1。 每个Acceptor有最大处理上限,默认为10000,如为-1,则无上限。 protected void countUpOrAwaitConnection() throws InterruptedException { if (maxConnections==-1) return; LimitLatch latch = connectionLimitLatch; if (latch!=... 阅读全文

posted @ 2013-09-22 22:26 knockon 阅读(582) 评论(0) 推荐(1) 编辑

导航