|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58738 apc_fetch dies after 1 hour, regardless of ttl settings
Submitted: 2009-06-25 23:41 UTC Modified: 2009-08-21 06:44 UTC
From: jbigwood at cpr dot org Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.2.5 OS: RedHat 4.1.2-42
Private report: No CVE-ID: None
 [2009-06-25 23:41 UTC] jbigwood at cpr dot org
This is NOT a duplicate of bug #14198, or #14727.

Need the ability to perform large uploads over http. Grabbed the 3.1.2 build, as I saw it had the ability to set the apc.rfc1867_ttl. The version we were using (3.0.18) was timing out after 1 hour (the default). Setting this and apc.gc_ttl to 7200 within php.ini was showing up after a graceful, however did not seem to matter. However, altering apc_rfc1867.c, and setting 3 apc_store defaults to 7200 and re-compiling apparently seemed to be recognized. Uploads would pass 3600 seconds without apc_fetch dying. 
apc.cache_by_default	1
apc.canonicalize	1
apc.coredump_unmap	0
apc.enable_cli	0
apc.enabled	1
apc.file_md5	0
apc.file_update_protection	2
apc.gc_ttl	7200
apc.include_once_override	0
apc.max_file_size	1000M
apc.num_files_hint	1000
apc.report_autofilter	0
apc.rfc1867	1
apc.rfc1867_freq	0
apc.rfc1867_name	APC_UPLOAD_PROGRESS
apc.rfc1867_prefix	upload_
apc.rfc1867_ttl	7200
apc.shm_segments	1
apc.shm_size	30
apc.stat	1
apc.stat_ctime	0
apc.ttl	0
apc.user_entries_hint	4096
apc.user_ttl	0
apc.write_lock	1


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-04 07:42 UTC] stephen at enscripter dot com
I too had this issue on debian lenny. After editing apc_rfc1867.c and replacing all instances where 3600 was hard coded with APCG(rfc1867_ttl), it all seems to work now [with appropriate rfc1867_ttl settings in php.ini].
 [2009-08-21 06:44 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Aug 09 05:01:23 2020 UTC