提交 1c541e4b 编写于 作者: C chegar

7010903: impl. of http.maxConnections is different from the description in JavaSE document

Reviewed-by: alanb, michaelm
上级 809636e7
......@@ -267,7 +267,7 @@ class ClientVector extends java.util.Stack<KeepAliveEntry> {
/* return a still valid, unused HttpClient */
synchronized void put(HttpClient h) {
if (size() > KeepAliveCache.getMaxConnections()) {
if (size() >= KeepAliveCache.getMaxConnections()) {
h.closeServer(); // otherwise the connection remains in limbo
} else {
push(new KeepAliveEntry(h, System.currentTimeMillis()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册