Lines Matching refs:rbio
49 BIO *rbio; /* BIO to read/receive response from */ member
94 OSSL_HTTP_REQ_CTX *OSSL_HTTP_REQ_CTX_new(BIO *wbio, BIO *rbio, int buf_size) in OSSL_HTTP_REQ_CTX_new() argument
98 if (wbio == NULL || rbio == NULL) { in OSSL_HTTP_REQ_CTX_new()
109 rctx->rbio = rbio; in OSSL_HTTP_REQ_CTX_new()
391 static OSSL_HTTP_REQ_CTX *http_req_ctx_new(int free_wbio, BIO *wbio, BIO *rbio, in http_req_ctx_new() argument
398 OSSL_HTTP_REQ_CTX *rctx = OSSL_HTTP_REQ_CTX_new(wbio, rbio, buf_size); in http_req_ctx_new()
558 if (rctx->mem == NULL || rctx->wbio == NULL || rctx->rbio == NULL) { in OSSL_HTTP_REQ_CTX_nbio()
568 n = BIO_read(rctx->rbio, rctx->buf, rctx->buf_size); in OSSL_HTTP_REQ_CTX_nbio()
571 n = BIO_gets(rctx->rbio, buf, rctx->buf_size); in OSSL_HTTP_REQ_CTX_nbio()
574 n = BIO_get_line(rctx->rbio, buf, rctx->buf_size); in OSSL_HTTP_REQ_CTX_nbio()
580 if (BIO_should_retry(rctx->rbio)) in OSSL_HTTP_REQ_CTX_nbio()
827 while ((n = BIO_read(rctx->rbio, rctx->buf, rctx->buf_size)) > 0 in OSSL_HTTP_REQ_CTX_nbio()
828 || (OSSL_sleep(100), BIO_should_retry(rctx->rbio))) { in OSSL_HTTP_REQ_CTX_nbio()
993 if (BIO_wait(rctx->rbio, rctx->max_time, 100 /* milliseconds */) <= 0) in OSSL_HTTP_REQ_CTX_exchange()
1006 return rctx->state == OHS_STREAM ? rctx->rbio : rctx->mem; in OSSL_HTTP_REQ_CTX_exchange()
1019 int use_ssl, BIO *bio, BIO *rbio, in OSSL_HTTP_open() argument
1030 if (rbio != NULL && (bio == NULL || bio_update_fn != NULL)) { in OSSL_HTTP_open()
1069 if (rbio == NULL && BIO_do_connect_retry(cbio, overall_timeout, -1) <= 0) { in OSSL_HTTP_open()
1089 rctx = http_req_ctx_new(bio == NULL, cbio, rbio != NULL ? rbio : cbio, in OSSL_HTTP_open()
1212 BIO *bio, BIO *rbio, in OSSL_HTTP_get() argument
1243 use_ssl, bio, rbio, bio_update_fn, arg, in OSSL_HTTP_get()
1304 BIO *bio, BIO *rbio, in OSSL_HTTP_transfer() argument
1316 use_ssl, bio, rbio, bio_update_fn, arg, in OSSL_HTTP_transfer()