| 189 | } |
| 190 | |
| 191 | static apr_status_t recv_data_full(const fcgi_provider_conf *conf, |
| 192 | request_rec *r, |
| 193 | apr_socket_t *s, |
| 194 | char *buf, |
| 195 | apr_size_t buflen) |
| 196 | { |
| 197 | apr_size_t readlen; |
| 198 | apr_size_t cumulative_len = 0; |
| 199 | apr_status_t rv; |
| 200 | |
| 201 | do { |
| 202 | readlen = buflen - cumulative_len; |
| 203 | rv = recv_data(conf, r, s, buf + cumulative_len, &readlen); |
| 204 | if (rv != APR_SUCCESS) { |
| 205 | return rv; |
| 206 | } |
| 207 | cumulative_len += readlen; |
| 208 | } while (cumulative_len < buflen); |
| 209 | |
| 210 | return APR_SUCCESS; |
| 211 | } |
| 212 | |
| 213 | static apr_status_t sendv_data(const fcgi_provider_conf *conf, |
| 214 | request_rec *r, |
no test coverage detected