Lines Matching refs:nread

418   ssize_t nread;  in stream_resp_read()  local
425 nread = quiche_h3_recv_body(ctx->h3c, ctx->qconn, stream->id, in stream_resp_read()
427 if(nread >= 0) { in stream_resp_read()
429 return nread; in stream_resp_read()
620 ssize_t nread; in recv_pkt() local
630 nread = quiche_conn_recv(ctx->qconn, (unsigned char *)pkt, pktlen, in recv_pkt()
632 if(nread < 0) { in recv_pkt()
633 if(QUICHE_ERR_DONE == nread) { in recv_pkt()
645 else if(QUICHE_ERR_TLS_FAIL == nread) { in recv_pkt()
654 failf(r->data, "quiche_conn_recv() == %zd", nread); in recv_pkt()
658 else if((size_t)nread < pktlen) { in recv_pkt()
660 nread, pktlen); in recv_pkt()
731 ssize_t nread; in cf_flush_egress() local
769 nread = Curl_bufq_sipn(&ctx->q.sendbuf, 0, in cf_flush_egress()
771 if(nread < 0) { in cf_flush_egress()
787 if((size_t)nread < gsolen || pkt_count >= MAX_PKT_BURST) { in cf_flush_egress()
815 ssize_t nread = -1; in recv_closed_stream() local
837 nread = 0; in recv_closed_stream()
839 return nread; in recv_closed_stream()
847 ssize_t nread = -1; in cf_quiche_recv() local
858 nread = Curl_bufq_read(&stream->recvbuf, in cf_quiche_recv()
861 "-> %zd, %d", stream->id, len, nread, *err); in cf_quiche_recv()
862 if(nread < 0) in cf_quiche_recv()
869 nread = -1; in cf_quiche_recv()
874 if(nread < 0 && !Curl_bufq_is_empty(&stream->recvbuf)) { in cf_quiche_recv()
875 nread = Curl_bufq_read(&stream->recvbuf, in cf_quiche_recv()
878 "-> %zd, %d", stream->id, len, nread, *err); in cf_quiche_recv()
879 if(nread < 0) in cf_quiche_recv()
883 if(nread > 0) { in cf_quiche_recv()
889 nread = recv_closed_stream(cf, data, err); in cf_quiche_recv()
895 nread = -1; in cf_quiche_recv()
899 nread = -1; in cf_quiche_recv()
907 nread = -1; in cf_quiche_recv()
909 if(nread > 0) in cf_quiche_recv()
910 ctx->data_recvd += nread; in cf_quiche_recv()
913 stream->id, ctx->data_recvd, nread, *err); in cf_quiche_recv()
914 return nread; in cf_quiche_recv()