Wrapper for apr_socket_recv that handles updating the worker stats. */
| 286 | |
| 287 | /* Wrapper for apr_socket_recv that handles updating the worker stats. */ |
| 288 | static apr_status_t get_data(proxy_conn_rec *conn, |
| 289 | char *buffer, |
| 290 | apr_size_t *buflen) |
| 291 | { |
| 292 | apr_status_t rv = apr_socket_recv(conn->sock, buffer, buflen); |
| 293 | |
| 294 | if (rv == APR_SUCCESS) { |
| 295 | conn->worker->s->read += *buflen; |
| 296 | } |
| 297 | |
| 298 | return rv; |
| 299 | } |
| 300 | |
| 301 | static apr_status_t get_data_full(proxy_conn_rec *conn, |
| 302 | char *buffer, |
no outgoing calls
no test coverage detected