Skip to content

Commit 26bcd25

Browse files
committed
incorporate review comments from Rüdiger
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1820113 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3d26cb0 commit 26bcd25

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

server/listen.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,8 +1144,12 @@ AP_DECLARE_NONSTD(const char *) ap_set_accept_errors_nonfatal(cmd_parms *cmd,
11441144
void *dummy,
11451145
int flag)
11461146
{
1147-
ap_accept_errors_nonfatal = flag;
1148-
return NULL;
1147+
const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
1148+
if (err != NULL) {
1149+
return err;
1150+
}
1151+
ap_accept_errors_nonfatal = flag;
1152+
return NULL;
11491153
}
11501154

11511155
AP_DECLARE_NONSTD(const char *) ap_set_receive_buffer_size(cmd_parms *cmd,

server/mpm/prefork/prefork.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,8 @@ static void child_main(int child_num_arg, int child_bucket)
600600
/* resource shortage or should-not-occur occurred */
601601
clean_child_exit(APEXIT_CHILDSICK);
602602
}
603-
else if (ap_accept_error_is_nonfatal(rc)) {
604-
ap_log_error(APLOG_MARK, APLOG_DEBUG, rc, ap_server_conf,
603+
if (ap_accept_error_is_nonfatal(status)) {
604+
ap_log_error(APLOG_MARK, APLOG_DEBUG, status, ap_server_conf,
605605
"accept() on client socket failed");
606606
}
607607

0 commit comments

Comments
 (0)