Searched defs:connection (Results 1 - 4 of 4) sorted by relevance
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/ |
H A D | HttpConnectionPool.java | 39 * <p>If a security manager is in place, HTTP connection pooling will be 70 // First try to reuse an existing HTTP connection. 75 HttpConnection connection = connections.remove(connections.size() - 1); 76 if (!connection.isStale()) { 77 return connection; 85 * We couldn't find a reusable connection, so we need to create a new 86 * connection. We're careful not to do so while holding a lock! 91 public void recycle(HttpConnection connection) { argument 92 if (maxConnections > 0 && connection.isEligibleForRecycling()) { 93 HttpConfiguration config = connection [all...] |
H A D | HttpURLConnectionImpl.java | 76 protected HttpConnection connection; field in class:HttpURLConnectionImpl 108 // proxy which is used to make the connection. 369 // Otherwise the next caller on this connection will receive that data. 699 * cause the connection to be closed entirely or returned 700 * to the connection pool. In the former case, we simply 703 * while, meanwhile, the connection has been handed back 793 * URL The URL this connection is connecting 803 * URL The URL this connection is connecting 805 * int The default connection port 829 * URL The URL this connection i 936 setUpTransportIO(HttpConnection connection) argument [all...] |
/dalvik/libcore/sql/src/test/java/tests/java/sql/ |
H A D | QueryTimeoutTest.java | 58 * threads execute their statement in the context of one connection, the other 59 * two threads in the context of the other connection. Of the 4 threads, only 62 * what connection/transaction it and other statements are executed in the 67 * query in the context of a separate connection. There is no point in executing 68 * multiple statements on the same connection; since only one statement per 69 * connection executes at a time, there will be no interleaving of execution 146 private static void exec(Connection connection, String queryString, argument 150 statement = connection.createStatement(); 175 private static void exec(Connection connection, String queryString) argument 177 exec(connection, queryStrin [all...] |
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
H A D | HttpsURLConnectionTest.java | 91 // read/connection timeout value 138 * Checks if HTTPS connection performs initial SSL handshake with the 141 * test checks connection state parameters established by 146 notes = "Verifies if HTTPS connection performs initial SSL handshake with the server working over SSL, sends encrypted HTTP request, and receives expected HTTP response.", 166 // create url connection to be tested 168 HttpsURLConnection connection = (HttpsURLConnection) url 172 SSLSocket peerSocket = (SSLSocket) doInteraction(connection, ss); 174 // check the connection state 175 checkConnectionStateParameters(connection, peerSocket); 178 connection 1351 private HttpURLConnection connection; field in class:HttpsURLConnectionTest.ClientConnectionWork 1357 ClientConnectionWork(HttpURLConnection connection) argument [all...] |
Completed in 86 milliseconds