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:35:57 UTC

[Bug 59987] New: Add log message when apr_socket_send fails

https://bz.apache.org/bugzilla/show_bug.cgi?id=59987

            Bug ID: 59987
           Summary: Add log message when apr_socket_send 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 34133
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34133&action=edit
Add log message when apr_socket_send fails

Function apr_socket_send 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_scgi.c:234:19 */
        if ((rv = apr_socket_send(conn->sock, buf, &written)) != APR_SUCCESS) {
            ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, APLOGNO(00858)
                          "sending data to %s:%u failed",
                          conn->hostname, conn->port);
        }

-- 
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 59987] [patch] Add log message when apr_socket_send fails

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

jiazhouyang@nudt.edu.cn changed:

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