| 299 | } |
| 300 | |
| 301 | static apr_status_t get_data_full(proxy_conn_rec *conn, |
| 302 | char *buffer, |
| 303 | apr_size_t buflen) |
| 304 | { |
| 305 | apr_size_t readlen; |
| 306 | apr_size_t cumulative_len = 0; |
| 307 | apr_status_t rv; |
| 308 | |
| 309 | do { |
| 310 | readlen = buflen - cumulative_len; |
| 311 | rv = get_data(conn, buffer + cumulative_len, &readlen); |
| 312 | if (rv != APR_SUCCESS) { |
| 313 | return rv; |
| 314 | } |
| 315 | cumulative_len += readlen; |
| 316 | } while (cumulative_len < buflen); |
| 317 | |
| 318 | return APR_SUCCESS; |
| 319 | } |
| 320 | |
| 321 | static apr_status_t send_begin_request(proxy_conn_rec *conn, |
| 322 | apr_uint16_t request_id) |