You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2016/08/11 15:13:28 UTC
[Bug 59978] New: Add log message when ap_mutex_register fails
https://bz.apache.org/bugzilla/show_bug.cgi?id=59978
Bug ID: 59978
Summary: Add log message when ap_mutex_register fails
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: All
Assignee: bugs@httpd.apache.org
Reporter: jiazhouyang@nudt.edu.cn
Created attachment 34124
--> https://bz.apache.org/bugzilla/attachment.cgi?id=34124&action=edit
Add log message when ap_mutex_register fails
Function ap_mutex_register may fail. The majority of calls have checked the
return value and printed log message like the following code snippet, while the
others have not. Those unchecked ones probably need logs too (see attachment).
/* httpd-2.4.10/modules/proxy/mod_proxy.c:2687:23 */
apr_status_t rv = ap_mutex_register(pconf, proxy_id, NULL,
APR_LOCK_DEFAULT, 0);
if (rv != APR_SUCCESS) {
ap_log_perror(APLOG_MARK, APLOG_CRIT, rv, plog, APLOGNO(02480)
"failed to register %s mutex", proxy_id);
return 500; /* An HTTP status would be a misnomer! */
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 59978] [patch] Add log message when ap_mutex_register fails
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59978
jiazhouyang@nudt.edu.cn changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Add log message when |[patch] Add log message
|ap_mutex_register fails |when ap_mutex_register
| |fails
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org