Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25069)
return 0;
quic_lock(ctx.qc);
- ossl_quic_reactor_tick(ossl_quic_channel_get_reactor(ctx.qc->ch), 0);
+ if (ctx.qc->started)
+ ossl_quic_reactor_tick(ossl_quic_channel_get_reactor(ctx.qc->ch), 0);
quic_unlock(ctx.qc);
return 1;
}
quic_lock(ctx.qc);
+ if (!ctx.qc->started) {
+ /* We can only try to write on non-started connection. */
+ if ((events & SSL_POLL_EVENT_W) != 0)
+ revents |= SSL_POLL_EVENT_W;
+ goto end;
+ }
+
if (do_tick)
ossl_quic_reactor_tick(ossl_quic_channel_get_reactor(ctx.qc->ch), 0);
revents |= SSL_POLL_EVENT_OSU;
}
+ end:
quic_unlock(ctx.qc);
*p_revents = revents;
return 1;