Lines 15-25
Link Here
|
15 |
*/ |
15 |
*/ |
16 |
|
16 |
|
17 |
/* |
17 |
/* |
18 |
|
18 |
|
19 |
*** mod_proxy_uwsgi *** |
19 |
*** mod_proxy_uwsgi *** |
20 |
|
20 |
|
21 |
Copyright 2009-2017 Unbit S.a.s. <info@unbit.it> |
21 |
Copyright 2009-2017 Unbit S.a.s. <info@unbit.it> |
22 |
|
22 |
|
23 |
Licensed under the Apache License, Version 2.0 (the "License"); |
23 |
Licensed under the Apache License, Version 2.0 (the "License"); |
24 |
you may not use this file except in compliance with the License. |
24 |
you may not use this file except in compliance with the License. |
25 |
You may obtain a copy of the License at |
25 |
You may obtain a copy of the License at |
Lines 223-231
static int uwsgi_send_body(request_rec *r, proxy_conn_rec * conn)
Link Here
|
223 |
readlen = ap_get_client_block(r, buf, AP_IOBUFSIZE); |
223 |
readlen = ap_get_client_block(r, buf, AP_IOBUFSIZE); |
224 |
} |
224 |
} |
225 |
if (readlen == -1) { |
225 |
if (readlen == -1) { |
226 |
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(10099) |
226 |
apr_status_t rv = apr_get_netos_error(); |
227 |
"receiving request body failed"); |
227 |
if (APR_STATUS_IS_EAGAIN(rv)) { |
228 |
return HTTP_INTERNAL_SERVER_ERROR; |
228 |
return HTTP_REQUEST_TIME_OUT; |
|
|
229 |
} |
230 |
else if (0 == rv) { |
231 |
/* ap_get_client_block will also fail on "premature chunk end". */ |
232 |
return HTTP_BAD_REQUEST; |
233 |
} |
234 |
else { |
235 |
ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, |
236 |
"receiving request body failed"); |
237 |
return HTTP_INTERNAL_SERVER_ERROR; |
238 |
} |
229 |
} |
239 |
} |
230 |
} |
240 |
} |
231 |
|
241 |
|