Lines Matching refs:h2

130   nghttp2_session *h2;  member
189 if(ctx->h2) { in cf_h2_ctx_close()
190 nghttp2_session_del(ctx->h2); in cf_h2_ctx_close()
305 ctx->h2, stream->id); in cf_h2_update_local_win()
307 rv = nghttp2_submit_window_update(ctx->h2, NGHTTP2_FLAG_NONE, in cf_h2_update_local_win()
319 rv = nghttp2_session_set_local_window_size(ctx->h2, NGHTTP2_FLAG_NONE, in cf_h2_update_local_win()
408 if(ctx->h2) { in http2_data_done()
411 (void)nghttp2_session_set_stream_user_data(ctx->h2, stream->id, NULL); in http2_data_done()
419 nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE, in http2_data_done()
425 nghttp2_session_send(ctx->h2); in http2_data_done()
450 rc = nghttp2_session_client_new3(&ctx->h2, cbs, cf, o, &mem); in h2_client_new()
482 static ssize_t send_callback(nghttp2_session *h2,
516 DEBUGASSERT(!ctx->h2); in cf_h2_ctx_open()
568 rc = nghttp2_session_upgrade2(ctx->h2, binsettings, (size_t)binlen, in cf_h2_ctx_open()
578 rc = nghttp2_session_set_stream_user_data(ctx->h2, stream->id, in cf_h2_ctx_open()
592 rc = nghttp2_submit_settings(ctx->h2, NGHTTP2_FLAG_NONE, in cf_h2_ctx_open()
602 rc = nghttp2_session_set_local_window_size(ctx->h2, NGHTTP2_FLAG_NONE, 0, in cf_h2_ctx_open()
627 return ctx->drain_total == 0 && !nghttp2_session_want_read(ctx->h2) && in should_close_session()
628 !nghttp2_session_want_write(ctx->h2); in should_close_session()
647 rv = nghttp2_session_mem_recv(ctx->h2, (const uint8_t *)buf, blen); in h2_process_pending_input()
665 if(nghttp2_session_check_request_allowed(ctx->h2) == 0) { in h2_process_pending_input()
727 rc = nghttp2_submit_ping(ctx->h2, 0, ZERO_NULL); in http2_send_ping()
734 rc = nghttp2_session_send(ctx->h2); in http2_send_ping()
748 nghttp2_info *h2 = nghttp2_version(0); in Curl_http2_ver() local
749 (void)msnprintf(p, len, "nghttp2/%s", h2->version_str); in Curl_http2_ver()
780 static ssize_t send_callback(nghttp2_session *h2, in send_callback() argument
790 (void)h2; in send_callback()
1031 rv = nghttp2_session_set_stream_user_data(ctx->h2, in push_promise()
1088 nghttp2_submit_rst_stream(ctx->h2, 0, stream->id, in h2_xfer_write_resp()
1112 ctx->h2, stream->id), in on_stream_frame()
1114 ctx->h2, stream->id)); in on_stream_frame()
1117 rv = nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE, in on_stream_frame()
1155 rv = nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE, in on_stream_frame()
1181 rv = nghttp2_session_resume_data(ctx->h2, stream->id); in on_stream_frame()
1199 nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE, in on_stream_frame()
1409 nghttp2_session_consume(ctx->h2, stream_id, len); in on_data_chunk_recv()
1903 rv = nghttp2_submit_priority(ctx->h2, NGHTTP2_FLAG_NONE, in h2_progress_egress()
1910 while(!rv && !ctx->nw_out_blocked && nghttp2_session_want_write(ctx->h2)) in h2_progress_egress()
1911 rv = nghttp2_session_send(ctx->h2); in h2_progress_egress()
2073 nghttp2_session_consume(ctx->h2, stream->id, data_consumed); in cf_h2_recv()
2100 ctx->h2, stream->id), in cf_h2_recv()
2102 ctx->h2, stream->id), in cf_h2_recv()
2103 nghttp2_session_get_local_window_size(ctx->h2), in cf_h2_recv()
2148 int rv = nghttp2_session_resume_data(ctx->h2, stream->id); in cf_h2_body_send()
2206 if(!nghttp2_session_check_request_allowed(ctx->h2)) in h2_submit()
2216 stream_id = nghttp2_submit_request(ctx->h2, &pri_spec, nva, nheader, in h2_submit()
2220 stream_id = nghttp2_submit_request(ctx->h2, &pri_spec, nva, nheader, in h2_submit()
2358 ctx->h2, stream->id), in cf_h2_send()
2359 nghttp2_session_get_remote_window_size(ctx->h2), in cf_h2_send()
2367 nghttp2_session_get_remote_window_size(ctx->h2), in cf_h2_send()
2385 int rv = nghttp2_session_resume_data(ctx->h2, stream->id); in cf_h2_flush()
2401 ctx->h2, stream->id), in cf_h2_flush()
2402 nghttp2_session_get_remote_window_size(ctx->h2), in cf_h2_flush()
2409 result, nghttp2_session_get_remote_window_size(ctx->h2), in cf_h2_flush()
2425 if(!ctx->h2) in cf_h2_adjust_pollset()
2435 c_exhaust = want_send && !nghttp2_session_get_remote_window_size(ctx->h2); in cf_h2_adjust_pollset()
2437 !nghttp2_session_get_stream_remote_window_size(ctx->h2, in cf_h2_adjust_pollset()
2441 (!c_exhaust && nghttp2_session_want_write(ctx->h2)) || in cf_h2_adjust_pollset()
2450 want_send = nghttp2_session_want_write(ctx->h2) || in cf_h2_adjust_pollset()
2452 want_recv = nghttp2_session_want_read(ctx->h2); in cf_h2_adjust_pollset()
2483 if(!ctx->h2) { in cf_h2_connect()
2549 if(!cf->connected || !ctx->h2 || cf->shutdown || ctx->conn_closed) { in cf_h2_shutdown()
2557 rv = nghttp2_submit_goaway(ctx->h2, NGHTTP2_FLAG_NONE, in cf_h2_shutdown()
2571 if(nghttp2_session_want_write(ctx->h2) || in cf_h2_shutdown()
2574 if(!result && nghttp2_session_want_read(ctx->h2)) in cf_h2_shutdown()
2581 (!result && !nghttp2_session_want_write(ctx->h2) && in cf_h2_shutdown()
2582 !nghttp2_session_want_read(ctx->h2) && in cf_h2_shutdown()
2599 if(ctx && ctx->h2 && stream) { in http2_data_pause()
2675 result = (ctx && ctx->h2 && http2_connisalive(cf, data, input_pending)); in cf_h2_is_alive()
2707 if(nghttp2_session_check_request_allowed(ctx->h2) == 0) { in cf_h2_query()