Don't attempt to use stored sessions when creating new check
connections, as the check SSL parameters might be different from the
server's ones.
This has not been proven to be a problem yet, but it doesn't mean it
can't be, and this should be backported up to 2.8 along with
dcce9369129f6ca9b8eed6b451c0e20c226af2e3 if it is.
* or releasing it.
*/
- if (!(s->ssl_ctx.options & SRV_SSL_O_NO_REUSE)) {
+ if (!(conn->flags & CO_FL_SSL_NO_CACHED_INFO) &&
+ !(s->ssl_ctx.options & SRV_SSL_O_NO_REUSE)) {
int len;
unsigned char *ptr;
#ifdef USE_QUIC
struct connection *conn = ctx->conn;
#endif
+ /*
+ * Always fail for check connections
+ */
+ if (conn->flags & CO_FL_SSL_NO_CACHED_INFO)
+ return 0;
+
HA_RWLOCK_RDLOCK(SSL_SERVER_LOCK, &srv->ssl_ctx.lock);
if (srv->ssl_ctx.reused_sess[tid].ptr) {
const unsigned char *ptr;