Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 268154
Collapse All | Expand All

(-)modules/proxy/mod_proxy_ajp.c (-15 / +11 lines)
Lines 307-327 Link Here
307
                         "proxy: read zero bytes, expecting"
307
                         "proxy: read zero bytes, expecting"
308
                         " %" APR_OFF_T_FMT " bytes",
308
                         " %" APR_OFF_T_FMT " bytes",
309
                         content_length);
309
                         content_length);
310
            status = ajp_send_data_msg(conn->sock, msg, 0);
310
            /*
311
            if (status != APR_SUCCESS) {
311
             * We can only get here if the client closed the connection
312
                /* We had a failure: Close connection to backend */
312
             * to us without sending the body.
313
                conn->close++;
313
             * Now the connection is in the wrong state on the backend.
314
                ap_log_error(APLOG_MARK, APLOG_ERR, status, r->server,
314
             * Sending an empty data msg doesn't help either as it does
315
                            "proxy: send failed to %pI (%s)",
315
             * not move this connection to the correct state on the backend
316
                            conn->worker->cp->addr,
316
             * for later resusage by the next request again.
317
                            conn->worker->hostname);
317
             * Close it to clean things up.
318
                return HTTP_INTERNAL_SERVER_ERROR;
318
             */
319
            }
319
            conn->close++;
320
            else {
320
            return HTTP_BAD_REQUEST;
321
                /* Client send zero bytes with C-L > 0
322
                 */
323
                return HTTP_BAD_REQUEST;
324
            }
325
        }
321
        }
326
    }
322
    }
327
323

Return to bug 268154