Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/18702)
static int keep_alive(int keep_alive, int body_type)
{
if (keep_alive != 0
- /* Ask for persistent connection only if may need more round trips */
+ /*
+ * Ask for persistent connection only if may need more round trips.
+ * Do so even with disableConfirm because polling might be needed.
+ */
&& body_type != OSSL_CMP_PKIBODY_IR
&& body_type != OSSL_CMP_PKIBODY_CR
&& body_type != OSSL_CMP_PKIBODY_P10CR