Lines Matching refs:result
55 CURLcode result; member
70 b->result = CURLE_OK; in cf_hc_baller_reset()
76 return b->enabled && b->cf && !b->result; in cf_hc_baller_is_active()
96 return b->cf && !b->result && b->cf->cft->has_data_pending(b->cf, data); in cf_hc_baller_data_pending()
102 return b->cf && !b->result && Curl_conn_cf_needs_flush(b->cf, data); in cf_hc_baller_needs_flush()
109 if(b->cf && !b->result) in cf_hc_baller_cntrl()
118 CURLcode result; /* overall result */ member
137 b->result = Curl_cf_setup_insert_after(cf, data, ctx->remotehost, in cf_hc_baller_init()
151 b->result = Curl_conn_cf_connect(cf->next, data, FALSE, done); in cf_hc_baller_connect()
154 return b->result; in cf_hc_baller_connect()
165 ctx->result = CURLE_OK; in cf_hc_reset()
176 CURLcode result = CURLE_OK; in baller_connected() local
204 result = Curl_http2_switch_at(cf, data); in baller_connected()
205 if(result) { in baller_connected()
207 ctx->result = result; in baller_connected()
208 return result; in baller_connected()
217 return result; in baller_connected()
261 CURLcode result = CURLE_OK; in cf_hc_connect() local
291 result = cf_hc_baller_connect(&ctx->h3_baller, cf, data, done); in cf_hc_connect()
292 if(!result && *done) { in cf_hc_connect()
293 result = baller_connected(cf, data, &ctx->h3_baller); in cf_hc_connect()
305 result = cf_hc_baller_connect(&ctx->h21_baller, cf, data, done); in cf_hc_connect()
306 if(!result && *done) { in cf_hc_connect()
307 result = baller_connected(cf, data, &ctx->h21_baller); in cf_hc_connect()
312 if((!ctx->h3_baller.enabled || ctx->h3_baller.result) && in cf_hc_connect()
313 (!ctx->h21_baller.enabled || ctx->h21_baller.result)) { in cf_hc_connect()
316 result = ctx->result = ctx->h3_baller.enabled ? in cf_hc_connect()
317 ctx->h3_baller.result : ctx->h21_baller.result; in cf_hc_connect()
321 result = CURLE_OK; in cf_hc_connect()
326 result = ctx->result; in cf_hc_connect()
332 result = CURLE_OK; in cf_hc_connect()
339 CURL_TRC_CF(data, cf, "connect -> %d, done=%d", result, *done); in cf_hc_connect()
340 return result; in cf_hc_connect()
349 CURLcode result = CURLE_OK; in cf_hc_shutdown() local
366 b->result = b->cf->cft->do_shutdown(b->cf, data, &bdone); in cf_hc_shutdown()
367 if(b->result || bdone) in cf_hc_shutdown()
378 if(ballers[i] && ballers[i]->result) in cf_hc_shutdown()
379 result = ballers[i]->result; in cf_hc_shutdown()
382 CURL_TRC_CF(data, cf, "shutdown -> %d, done=%d", result, *done); in cf_hc_shutdown()
383 return result; in cf_hc_shutdown()
484 CURLcode result = CURLE_OK; in cf_hc_cntrl() local
487 result = cf_hc_baller_cntrl(&ctx->h3_baller, data, event, arg1, arg2); in cf_hc_cntrl()
488 if(!result || (result == CURLE_AGAIN)) in cf_hc_cntrl()
489 result = cf_hc_baller_cntrl(&ctx->h21_baller, data, event, arg1, arg2); in cf_hc_cntrl()
490 if(result == CURLE_AGAIN) in cf_hc_cntrl()
491 result = CURLE_OK; in cf_hc_cntrl()
493 return result; in cf_hc_cntrl()
544 CURLcode result = CURLE_OK; in cf_hc_create() local
549 result = CURLE_OUT_OF_MEMORY; in cf_hc_create()
556 result = Curl_cf_create(&cf, &Curl_cft_http_connect, ctx); in cf_hc_create()
557 if(result) in cf_hc_create()
563 *pcf = result ? NULL : cf; in cf_hc_create()
565 return result; in cf_hc_create()
575 CURLcode result = CURLE_OK; in cf_http_connect_add() local
578 result = cf_hc_create(&cf, data, remotehost, try_h3, try_h21); in cf_http_connect_add()
579 if(result) in cf_http_connect_add()
583 return result; in cf_http_connect_add()
592 CURLcode result = CURLE_OK; in Curl_cf_https_setup() local
601 result = Curl_conn_may_http3(data, conn); in Curl_cf_https_setup()
602 if(result) /* cannot do it */ in Curl_cf_https_setup()
614 result = cf_http_connect_add(data, conn, sockindex, remotehost, in Curl_cf_https_setup()
617 return result; in Curl_cf_https_setup()