diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-07-08 19:45:35 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-07-11 17:06:12 +0200 |
commit | 6a1f9cdc0c33f9b0cfae44ec04e506367a1582cd (patch) | |
tree | 32d30cfc5e47710481ace42b91a6708368f1e78f /crypto/http/http_client.c | |
parent | 15729bef385211bc2a0497e2d53a45c45d677d2c (diff) |
Improve doc of OSSL_HTTP_REQ_CTX_set_expected() on timeout param < 0
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16029)
Diffstat (limited to 'crypto/http/http_client.c')
-rw-r--r-- | crypto/http/http_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/http/http_client.c b/crypto/http/http_client.c index aea53b302b..779e4b7203 100644 --- a/crypto/http/http_client.c +++ b/crypto/http/http_client.c @@ -257,7 +257,7 @@ int OSSL_HTTP_REQ_CTX_set_expected(OSSL_HTTP_REQ_CTX *rctx, rctx->expect_asn1 = asn1; if (timeout >= 0) rctx->max_time = timeout > 0 ? time(NULL) + timeout : 0; - else + else /* take over any |overall_timeout| arg of OSSL_HTTP_open(), else 0 */ rctx->max_time = rctx->max_total_time; rctx->keep_alive = keep_alive; return 1; |