php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58243 apc_fetch stops collecting data after one hour but upload procedes
Submitted: 2008-06-19 18:34 UTC Modified: 2008-08-28 20:59 UTC
From: oscargirao at gmail dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.2.4 OS: Fedora 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
4 + 26 = ?
Subscribe to this entry?

 
 [2008-06-19 18:34 UTC] oscargirao at gmail dot com
Description:
------------
When uploading a file using apc_fetch to collect the upload status it stops providing data after one hour.

apc.conf

apc
APC Support 	enabled
Version 	3.0.19
MMAP Support 	Enabled
MMAP File Mask 	/tmp/apc.nDlRZc
Locking type 	pthread mutex Locks
Revision 	$Revision: 3.154.2.5 $
Build Date 	Jun 13 2008 00:32:29

Directive	Local Value	Master Value
apc.cache_by_default	Off	Off
apc.coredump_unmap	Off	Off
apc.enable_cli	On	On
apc.enabled	On	On
apc.file_update_protection	2	2
apc.filters	no value	no value
apc.gc_ttl	36000	36000
apc.include_once_override	Off	Off
apc.max_file_size	1000M	1000M
apc.mmap_file_mask	/tmp/apc.nDlRZc	/tmp/apc.nDlRZc
apc.num_files_hint	20000	20000
apc.report_autofilter	Off	Off
apc.rfc1867	On	On
apc.rfc1867_freq	0	0
apc.rfc1867_name	APC_UPLOAD_PROGRESS	APC_UPLOAD_PROGRESS
apc.rfc1867_prefix	upload_	upload_
apc.shm_segments	1	1
apc.shm_size	256	256
apc.slam_defense	0	0
apc.stat	On	On
apc.stat_ctime	Off	Off
apc.ttl	36000	36000
apc.user_entries_hint	100	100
apc.user_ttl	36000	36000
apc.write_lock	On	On


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-24 09:06 UTC] trucmuch000 at gmail dot com
Had the same issue with debian etch with default installs.

I had a look at the source code for APC and it appears TTLs in 'apc_rfc1867.c' are hardcoded to 3600 seconds.

By editing these (ugly hack ;), recompiling and putting the new apc.so in place of the old one it seems to have worked for me.
 [2008-08-28 20:59 UTC] shire@php.net
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 pecl.php.net.

In case this was a pecl.php.net 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.

Latest CVS now has a apc.rfc1867_ttl INI option.  This will allow you to configure the rfc1867 TTL if your uploads are going to last longer than 3600 seconds.  Please try out latest CVS and re-open this bug if this does not fix your problem.  Thanks!
 [2009-10-26 07:57 UTC] stefan dot rutenkolk at freenet dot de
i still have these problem. When the upload files needs more then exactly one hour and zero seconds the return value of the apc_fetch is null but the upload works on.

This is my configuration:

APC Support	enabled
Version 	3.1.3p1
MMAP Support 	Enabled
MMAP File Mask 	no value
Locking type 	pthread mutex Locks
Revision 	$Revision: 286798 $
Build Date 	Oct 26 2009 10:45:22

Directive	Local Value	Master Value
apc.cache_by_default	On	On
apc.canonicalize	On	On
apc.coredump_unmap	Off	Off
apc.enable_cli	Off	Off
apc.enabled	On	On
apc.file_md5	Off	Off
apc.file_update_protection	2	2
apc.filters	no value	no value
apc.gc_ttl	7200	7200
apc.include_once_override	Off	Off
apc.lazy_classes	Off	Off
apc.lazy_functions	Off	Off
apc.max_file_size	1000M	1000M
apc.mmap_file_mask	no value	no value
apc.num_files_hint	1000	1000
apc.preload_path	no value	no value
apc.report_autofilter	Off	Off
apc.rfc1867	On	On
apc.rfc1867_freq	0	0
apc.rfc1867_name	APC_UPLOAD_PROGRESS	APC_UPLOAD_PROGRESS
apc.rfc1867_prefix	upload_	upload_
apc.rfc1867_ttl	7200	7200
apc.shm_segments	1	1
apc.shm_size	30	30
apc.stat	On	On
apc.stat_ctime	Off	Off
apc.ttl	7200	7200
apc.use_request_time	On	On
apc.user_entries_hint	4096	4096
apc.user_ttl	7200	7200
apc.write_lock	On	On
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 05:01:30 2024 UTC