Lines Matching refs:data
62 struct Curl_easy *data)
65 Curl_conn_cf_close(b->cf, data);
66 Curl_conn_cf_discard_chain(&b->cf, data);
84 struct Curl_easy *data)
87 b->cf->cft->query(b->cf, data, CF_QUERY_CONNECT_REPLY_MS,
93 const struct Curl_easy *data)
95 return b->cf && !b->result && b->cf->cft->has_data_pending(b->cf, data);
111 struct Curl_easy *data,
121 b->result = Curl_cf_setup_insert_after(cf, data, ctx->remotehost,
129 struct Curl_easy *data,
135 b->result = Curl_conn_cf_connect(cf->next, data, FALSE, done);
141 static void cf_hc_reset(struct Curl_cfilter *cf, struct Curl_easy *data)
146 cf_hc_baller_reset(&ctx->h3_baller, data);
147 cf_hc_baller_reset(&ctx->h21_baller, data);
150 ctx->hard_eyeballs_timeout_ms = data->set.happy_eyeballs_timeout;
151 ctx->soft_eyeballs_timeout_ms = data->set.happy_eyeballs_timeout / 2;
156 struct Curl_easy *data,
164 cf_hc_baller_reset(&ctx->h3_baller, data);
166 cf_hc_baller_reset(&ctx->h21_baller, data);
168 CURL_TRC_CF(data, cf, "connect+handshake %s: %dms, 1st data: %dms",
170 cf_hc_baller_reply_ms(winner, data));
176 infof(data, "using HTTP/3");
182 result = Curl_http2_switch_at(cf, data);
189 infof(data, "using HTTP/2");
192 infof(data, "using HTTP/1.x");
197 Curl_conn_cf_cntrl(cf->next, data, TRUE,
204 struct Curl_easy *data,
218 CURL_TRC_CF(data, cf, "hard timeout of %dms reached, starting h21",
224 if(cf_hc_baller_reply_ms(&ctx->h3_baller, data) < 0) {
225 CURL_TRC_CF(data, cf, "soft timeout of %dms reached, h3 has not "
226 "seen any data, starting h21",
231 Curl_expire(data, ctx->hard_eyeballs_timeout_ms - elapsed_ms,
238 struct Curl_easy *data,
258 CURL_TRC_CF(data, cf, "connect, init");
261 cf_hc_baller_init(&ctx->h3_baller, cf, data, "h3", TRNSPRT_QUIC);
263 Curl_expire(data, ctx->soft_eyeballs_timeout_ms, EXPIRE_ALPN_EYEBALLS);
266 cf_hc_baller_init(&ctx->h21_baller, cf, data, "h21",
273 result = cf_hc_baller_connect(&ctx->h3_baller, cf, data, done);
275 result = baller_connected(cf, data, &ctx->h3_baller);
280 if(time_to_start_h21(cf, data, now)) {
281 cf_hc_baller_init(&ctx->h21_baller, cf, data, "h21",
286 CURL_TRC_CF(data, cf, "connect, check h21");
287 result = cf_hc_baller_connect(&ctx->h21_baller, cf, data, done);
289 result = baller_connected(cf, data, &ctx->h21_baller);
297 CURL_TRC_CF(data, cf, "connect, all failed");
321 CURL_TRC_CF(data, cf, "connect -> %d, done=%d", result, *done);
326 struct Curl_easy *data,
340 Curl_conn_cf_adjust_pollset(b->cf, data, ps);
342 CURL_TRC_CF(data, cf, "adjust_pollset -> %d socks", ps->num);
347 const struct Curl_easy *data)
352 return cf->next->cft->has_data_pending(cf->next, data);
354 CURL_TRC_CF((struct Curl_easy *)data, cf, "data_pending");
355 return cf_hc_baller_data_pending(&ctx->h3_baller, data)
356 || cf_hc_baller_data_pending(&ctx->h21_baller, data);
360 struct Curl_easy *data,
370 if(cfb && !cfb->cft->query(cfb, data, query, NULL, &t)) {
376 if(cfb && !cfb->cft->query(cfb, data, query, NULL, &t)) {
384 struct Curl_easy *data,
391 *when = cf_get_max_baller_time(cf, data, CF_QUERY_TIMER_CONNECT);
396 *when = cf_get_max_baller_time(cf, data, CF_QUERY_TIMER_APPCONNECT);
404 cf->next->cft->query(cf->next, data, query, pres1, pres2) :
408 static void cf_hc_close(struct Curl_cfilter *cf, struct Curl_easy *data)
410 CURL_TRC_CF(data, cf, "close");
411 cf_hc_reset(cf, data);
415 cf->next->cft->do_close(cf->next, data);
416 Curl_conn_cf_discard_chain(&cf->next, data);
420 static void cf_hc_destroy(struct Curl_cfilter *cf, struct Curl_easy *data)
424 (void)data;
425 CURL_TRC_CF(data, cf, "destroy");
426 cf_hc_reset(cf, data);
449 struct Curl_easy *data,
457 (void)data;
471 cf_hc_reset(cf, data);
479 static CURLcode cf_http_connect_add(struct Curl_easy *data,
488 DEBUGASSERT(data);
489 result = cf_hc_create(&cf, data, remotehost, try_h3, try_h21);
492 Curl_conn_cf_add(data, conn, sockindex, cf);
497 CURLcode Curl_cf_https_setup(struct Curl_easy *data,
511 if(data->state.httpwant == CURL_HTTP_VERSION_3ONLY) {
512 result = Curl_conn_may_http3(data, conn);
518 else if(data->state.httpwant >= CURL_HTTP_VERSION_3) {
521 try_h3 = (Curl_conn_may_http3(data, conn) == CURLE_OK);
525 result = cf_http_connect_add(data, conn, sockindex, remotehost,