• Home
  • Raw
  • Download

Lines Matching refs:bundle

50   conn->bundle = NULL;  in conn_llist_dtor()
67 static void bundle_destroy(struct connectbundle *bundle) in bundle_destroy() argument
69 if(!bundle) in bundle_destroy()
72 Curl_llist_destroy(&bundle->conn_list, NULL); in bundle_destroy()
74 free(bundle); in bundle_destroy()
78 static void bundle_add_conn(struct connectbundle *bundle, in bundle_add_conn() argument
81 Curl_llist_insert_next(&bundle->conn_list, bundle->conn_list.tail, conn, in bundle_add_conn()
83 conn->bundle = bundle; in bundle_add_conn()
84 bundle->num_connections++; in bundle_add_conn()
88 static int bundle_remove_conn(struct connectbundle *bundle, in bundle_remove_conn() argument
93 curr = bundle->conn_list.head; in bundle_remove_conn()
96 Curl_llist_remove(&bundle->conn_list, curr, NULL); in bundle_remove_conn()
97 bundle->num_connections--; in bundle_remove_conn()
98 conn->bundle = NULL; in bundle_remove_conn()
194 struct connectbundle *bundle = NULL; in Curl_conncache_find_bundle() local
199 bundle = Curl_hash_pick(&connc->hash, key, strlen(key)); in Curl_conncache_find_bundle()
202 return bundle; in Curl_conncache_find_bundle()
207 struct connectbundle *bundle) in conncache_add_bundle() argument
209 void *p = Curl_hash_add(&connc->hash, key, strlen(key), bundle); in conncache_add_bundle()
215 struct connectbundle *bundle) in conncache_remove_bundle() argument
227 if(he->ptr == bundle) { in conncache_remove_bundle()
241 struct connectbundle *bundle = NULL; in Curl_conncache_add_conn() local
247 bundle = Curl_conncache_find_bundle(data, conn, data->state.conn_cache, in Curl_conncache_add_conn()
249 if(!bundle) { in Curl_conncache_add_conn()
253 result = bundle_create(&bundle); in Curl_conncache_add_conn()
259 rc = conncache_add_bundle(data->state.conn_cache, key, bundle); in Curl_conncache_add_conn()
262 bundle_destroy(bundle); in Curl_conncache_add_conn()
268 bundle_add_conn(bundle, conn); in Curl_conncache_add_conn()
292 struct connectbundle *bundle = conn->bundle; in Curl_conncache_remove_conn() local
297 if(bundle) { in Curl_conncache_remove_conn()
301 bundle_remove_conn(bundle, conn); in Curl_conncache_remove_conn()
302 if(bundle->num_connections == 0) in Curl_conncache_remove_conn()
303 conncache_remove_bundle(connc, bundle); in Curl_conncache_remove_conn()
304 conn->bundle = NULL; /* removed from it */ in Curl_conncache_remove_conn()
346 struct connectbundle *bundle; in Curl_conncache_foreach() local
348 bundle = he->ptr; in Curl_conncache_foreach()
351 curr = bundle->conn_list.head; in Curl_conncache_foreach()
379 struct connectbundle *bundle; in conncache_find_first_connection() local
386 bundle = he->ptr; in conncache_find_first_connection()
388 curr = bundle->conn_list.head; in conncache_find_first_connection()
441 struct connectbundle *bundle) in Curl_conncache_extract_bundle() argument
454 curr = bundle->conn_list.head; in Curl_conncache_extract_bundle()
471 bundle_remove_conn(bundle, conn_candidate); in Curl_conncache_extract_bundle()
497 struct connectbundle *bundle; in Curl_conncache_extract_oldest() local
509 bundle = he->ptr; in Curl_conncache_extract_oldest()
511 curr = bundle->conn_list.head; in Curl_conncache_extract_oldest()
523 bundle_candidate = bundle; in Curl_conncache_extract_oldest()
594 struct connectbundle *bundle;
597 bundle = he->ptr;
600 curr = bundle->conn_list->head;