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:34:19 UTC

[Bug 59986] New: Add log message when apr_socket_opt_set fails

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: bugs@httpd.apache.org
          Reporter: jiazhouyang@nudt.edu.cn

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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59986] [patch] Add log message when apr_socket_opt_set fails

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59986

jiazhouyang@nudt.edu.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Add log message when        |[patch] Add log message
                   |apr_socket_opt_set fails    |when apr_socket_opt_set
                   |                            |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