diff options
author | Jeff Trawick <trawick@apache.org> | 2012-09-26 14:42:53 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2012-09-26 14:42:53 +0000 |
commit | 7e9cf88b0ca4199bfa149a9ef41ae6d1c8b3d555 (patch) | |
tree | 0dbcaa1937d01cd1a0f087b4fd011f01e3ecb272 /memcache/apr_memcache.c | |
parent | 40928c22b6da29b359d716c6d1f4c294759a1c97 (diff) | |
download | apr-7e9cf88b0ca4199bfa149a9ef41ae6d1c8b3d555.tar.gz |
apr_memcache_server_create(): Fix handling of the ttl parameter.
It is documented as a number of seconds but was treated as
microseconds.
(The current Subversion release passes seconds.)
PR: 51511
Submitted by: Tim Whittington <timw apache.org>
Reviewed by: trawick
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1390526 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'memcache/apr_memcache.c')
-rw-r--r-- | memcache/apr_memcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/memcache/apr_memcache.c b/memcache/apr_memcache.c index 504ec37a6..1326e0f90 100644 --- a/memcache/apr_memcache.c +++ b/memcache/apr_memcache.c @@ -414,7 +414,7 @@ APR_DECLARE(apr_status_t) apr_memcache_server_create(apr_pool_t *p, min, /* hard minimum */ smax, /* soft maximum */ max, /* hard maximum */ - ttl, /* Time to live */ + apr_time_from_sec(ttl), /* Time to live */ mc_conn_construct, /* Make a New Connection */ mc_conn_destruct, /* Kill Old Connection */ server, np); |