very least we should close the socket and write a log message (mostly
to aid debugging, as this is a showstopper problem)
this is no fix; there is a design issue to consider; hopefully this
will
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91089
13f79535-47bb-0310-9956-
ffa450edef68
signal_workers();
}
if (csd != NULL) {
- ap_queue_push(worker_queue, csd, ptrans);
+ rv = ap_queue_push(worker_queue, csd, ptrans);
+ if (rv) {
+ /* trash the connection; we couldn't queue the connected
+ * socket to a worker
+ */
+ apr_socket_close(csd);
+ ap_log_error(APLOG_MARK, APLOG_CRIT, 0, ap_server_conf,
+ "ap_queue_push failed with error code %d",
+ rv);
+ }
}
}
else {