Permalink
Browse files

mc_set() expects expiration as epoch time

  • Loading branch information...
1 parent aa4462c commit 5c16b0b5df37e5b7ab726eaf97d86dc9d6a05c9b @tmm1 tmm1 committed with Jul 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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,

0 comments on commit 5c16b0b

Please sign in to comment.