Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

mc_set() expects expiration as epoch time

  • Loading branch information...
commit 5c16b0b5df37e5b7ab726eaf97d86dc9d6a05c9b 1 parent aa4462c
@tmm1 tmm1 authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/event/ngx_event_openssl.c
View
2  src/event/ngx_event_openssl.c
@@ -1728,7 +1728,7 @@ ngx_ssl_new_session(ngx_ssl_conn_t *ssl_conn, ngx_ssl_session_t *sess)
rv = mc_set(mc,
(char *)sess_key.data, sess_key.len,
buf, len,
- SSL_CTX_get_timeout(ssl_ctx), 0);
+ time(NULL) + SSL_CTX_get_timeout(ssl_ctx), 0);
if (rv != 0) {
ngx_log_error(NGX_LOG_ALERT, c->log, 0,
Please sign in to comment.
Something went wrong with that request. Please try again.