Lines Matching refs:rv
300 int rv; in cf_h2_update_local_win() local
307 rv = nghttp2_submit_window_update(ctx->h2, NGHTTP2_FLAG_NONE, in cf_h2_update_local_win()
309 if(rv) { in cf_h2_update_local_win()
311 "%s(%d)", stream->id, nghttp2_strerror(rv), rv); 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()
321 if(rv) { in cf_h2_update_local_win()
323 "%s(%d)", stream->id, nghttp2_strerror(rv), rv); in cf_h2_update_local_win()
643 ssize_t rv; in h2_process_pending_input() local
647 rv = nghttp2_session_mem_recv(ctx->h2, (const uint8_t *)buf, blen); in h2_process_pending_input()
648 if(rv < 0) { in h2_process_pending_input()
651 "%zd:%s", rv, nghttp2_strerror((int)rv)); in h2_process_pending_input()
655 Curl_bufq_skip(&ctx->inbufq, (size_t)rv); in h2_process_pending_input()
952 int rv; /* one of the CURL_PUSH_* defines */ in push_promise() local
966 rv = CURL_PUSH_DENY; /* FAIL HARD */ in push_promise()
977 rv = CURL_PUSH_DENY; in push_promise()
985 rv = set_transfer_url(newhandle, &heads); in push_promise()
986 if(rv) { in push_promise()
988 rv = CURL_PUSH_DENY; in push_promise()
996 rv = CURL_PUSH_DENY; in push_promise()
1002 rv = data->multi->push_cb(data, newhandle, in push_promise()
1010 if(rv) { in push_promise()
1011 DEBUGASSERT((rv > CURL_PUSH_OK) && (rv <= CURL_PUSH_ERROROUT)); in push_promise()
1027 rv = CURL_PUSH_DENY; in push_promise()
1031 rv = nghttp2_session_set_stream_user_data(ctx->h2, in push_promise()
1034 if(rv) { in push_promise()
1038 rv = CURL_PUSH_DENY; in push_promise()
1048 rv = CURL_PUSH_DENY; in push_promise()
1051 return rv; in push_promise()
1100 int rv; in on_stream_frame() local
1117 rv = nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE, in on_stream_frame()
1120 if(nghttp2_is_fatal(rv)) { in on_stream_frame()
1152 rv = push_promise(cf, data, &frame->push_promise); in on_stream_frame()
1153 if(rv) { /* deny! */ in on_stream_frame()
1154 DEBUGASSERT((rv > CURL_PUSH_OK) && (rv <= CURL_PUSH_ERROROUT)); in on_stream_frame()
1155 rv = nghttp2_submit_rst_stream(ctx->h2, NGHTTP2_FLAG_NONE, in on_stream_frame()
1158 if(nghttp2_is_fatal(rv)) in on_stream_frame()
1160 else if(rv == CURL_PUSH_ERROROUT) { in on_stream_frame()
1181 rv = nghttp2_session_resume_data(ctx->h2, stream->id); in on_stream_frame()
1182 if(nghttp2_is_fatal(rv)) in on_stream_frame()
1421 int rv; in on_stream_close() local
1463 rv = nghttp2_session_set_stream_user_data(session, stream_id, 0); in on_stream_close()
1464 if(rv) { in on_stream_close()
1769 ssize_t rv = 0; in http2_handle_stream_close() local
1840 rv = 0; in http2_handle_stream_close()
1843 CURL_TRC_CF(data, cf, "handle_stream_close -> %zd, %d", rv, *err); in http2_handle_stream_close()
1844 return rv; in http2_handle_stream_close()
1891 int rv = 0; in h2_progress_egress() local
1903 rv = nghttp2_submit_priority(ctx->h2, NGHTTP2_FLAG_NONE, in h2_progress_egress()
1905 if(rv) 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()
1914 if(nghttp2_is_fatal(rv)) { in h2_progress_egress()
1916 nghttp2_strerror(rv), rv); in h2_progress_egress()
2148 int rv = nghttp2_session_resume_data(ctx->h2, stream->id); in cf_h2_body_send() local
2149 if(nghttp2_is_fatal(rv)) { in cf_h2_body_send()
2385 int rv = nghttp2_session_resume_data(ctx->h2, stream->id); in cf_h2_flush() local
2386 if(nghttp2_is_fatal(rv)) { in cf_h2_flush()
2547 int rv; in cf_h2_shutdown() local
2557 rv = nghttp2_submit_goaway(ctx->h2, NGHTTP2_FLAG_NONE, in cf_h2_shutdown()
2561 if(rv) { in cf_h2_shutdown()
2563 nghttp2_strerror(rv), rv); in cf_h2_shutdown()