Home | History | Annotate | Download | only in http

Lines Matching defs:connections

29  * A pool of HTTP connections. This class exposes its tuning parameters as
32 * <li>{@code http.keepAlive} true if HTTP connections should be pooled at
34 * <li>{@code http.maxConnections} maximum number of connections to each URI.
40 * so before making HTTP connections, and that this class is initialized lazily.
67 List<HttpConnection> connections = connectionPool.get(address);
68 while (connections != null) {
69 HttpConnection connection = connections.remove(connections.size() - 1);
70 if (connections.isEmpty()) {
72 connections = null;
104 List<HttpConnection> connections = connectionPool.get(address);
105 if (connections == null) {
106 connections = new ArrayList<HttpConnection>();
107 connectionPool.put(address, connections);
109 if (connections.size() < maxConnections) {
111 connections.add(connection);