You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2008/02/15 16:27:08 UTC
DO NOT REPLY [Bug 44432] New: - patch - proposal for application function hooks
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44432>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44432
Summary: patch - proposal for application function hooks
Product: APR
Version: HEAD
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P3
Component: APR
AssignedTo: bugs@apr.apache.org
ReportedBy: vwfinley@comcast.net
In systems where system resources are extremely limited or managed tightly,
applications may be unable to recover from system failures that occur within APR.
For an example: in an embedded system where applications are given an initial
virtual memory limit, malloc in an apr_pool can fail.
The patch I have available provides a way for to applications to easily install
their own hook handler functions into APR. The handler functions can be called
easily by APR on failure and will give the application opportunity to recover
from the system error and for APR to retry.
For example: on a malloc failure in apr_pool, the application could attempt to
increase virtual memory and have APR retry the malloc.
There are some similarities between this patch and the hooks facility in APU;
however, this patch is more limited in scope because it is targeted toward
handling system failures. The hooks facility in APU uses dynamic allocation to
manage a chain of handler functions. This is something to be avoided when
trying to catch system errors like allocation failures. The proposed patch
instead uses static pointers to single functions.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 44432] - patch - proposal for application function hooks
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44432>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44432
------- Additional Comments From vwfinley@comcast.net 2008-02-15 07:28 -------
Created an attachment (id=21537)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=21537&action=view)
Proposed enhancement
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 44432] - patch - proposal for application function hooks
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44432>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44432
vwfinley@comcast.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #21537|1 |0
is patch| |
Attachment #21537|0 |1
is obsolete| |
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 44432] - patch - proposal for application function hooks
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44432>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44432
------- Additional Comments From vwfinley@comcast.net 2008-02-15 10:01 -------
Created an attachment (id=21538)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=21538&action=view)
Proposed enhancement patch
Ignore the previous patch posted for this issue.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org