]>
Commit | Line | Data |
---|---|---|
882bf190 PG |
1 | Index: modules/proxy/mod_proxy_ajp.c |
2 | =================================================================== | |
3 | --- modules/proxy/mod_proxy_ajp.c (Revision 763379) | |
4 | +++ modules/proxy/mod_proxy_ajp.c (Arbeitskopie) | |
5 | @@ -307,21 +307,17 @@ | |
6 | "proxy: read zero bytes, expecting" | |
7 | " %" APR_OFF_T_FMT " bytes", | |
8 | content_length); | |
9 | - status = ajp_send_data_msg(conn->sock, msg, 0); | |
10 | - if (status != APR_SUCCESS) { | |
11 | - /* We had a failure: Close connection to backend */ | |
12 | - conn->close++; | |
13 | - ap_log_error(APLOG_MARK, APLOG_ERR, status, r->server, | |
14 | - "proxy: send failed to %pI (%s)", | |
15 | - conn->worker->cp->addr, | |
16 | - conn->worker->hostname); | |
17 | - return HTTP_INTERNAL_SERVER_ERROR; | |
18 | - } | |
19 | - else { | |
20 | - /* Client send zero bytes with C-L > 0 | |
21 | - */ | |
22 | - return HTTP_BAD_REQUEST; | |
23 | - } | |
24 | + /* | |
25 | + * We can only get here if the client closed the connection | |
26 | + * to us without sending the body. | |
27 | + * Now the connection is in the wrong state on the backend. | |
28 | + * Sending an empty data msg doesn't help either as it does | |
29 | + * not move this connection to the correct state on the backend | |
30 | + * for later resusage by the next request again. | |
31 | + * Close it to clean things up. | |
32 | + */ | |
33 | + conn->close++; | |
34 | + return HTTP_BAD_REQUEST; | |
35 | } | |
36 | } | |
37 |