https://bz.apache.org/bugzilla/show_bug.cgi?id=59986
Bug ID: 59986
Summary: Add log message when apr_socket_opt_set fails
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: All
Assignee: [email protected]
Reporter: [email protected]
Created attachment 34132
--> https://bz.apache.org/bugzilla/attachment.cgi?id=34132&action=edit
Add log message when apr_socket_opt_set fails
Function apr_socket_opt_set 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/server/listen.c:227:14 */
rv = apr_socket_opt_set(s, APR_TCP_DEFER_ACCEPT, 30);
if (rv != APR_SUCCESS && !APR_STATUS_IS_ENOTIMPL(rv)) {
ap_log_perror(APLOG_MARK, APLOG_WARNING, rv, p, APLOGNO(00076)
"Failed to enable APR_TCP_DEFER_ACCEPT");
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]