Loading server/core_filters.c +10 −8 Original line number Diff line number Diff line Loading @@ -520,7 +520,8 @@ static apr_status_t emulate_sendfile(core_net_rec *c, apr_file_t *fd, sendlen = togo > sizeof(buffer) ? sizeof(buffer) : togo; o = 0; rv = apr_file_read(fd, buffer, &sendlen); while (rv == APR_SUCCESS && sendlen) { if (rv == APR_SUCCESS && sendlen) { while ((rv == APR_SUCCESS || rv == APR_EAGAIN) && sendlen) { bytes_sent = sendlen; rv = apr_socket_send(c->client_socket, &buffer[o], &bytes_sent); *nbytes += bytes_sent; Loading @@ -531,6 +532,7 @@ static apr_status_t emulate_sendfile(core_net_rec *c, apr_file_t *fd, } } } } /* Send the trailers * XXX: optimization... if it will fit, send this on the last send in the Loading Loading
server/core_filters.c +10 −8 Original line number Diff line number Diff line Loading @@ -520,7 +520,8 @@ static apr_status_t emulate_sendfile(core_net_rec *c, apr_file_t *fd, sendlen = togo > sizeof(buffer) ? sizeof(buffer) : togo; o = 0; rv = apr_file_read(fd, buffer, &sendlen); while (rv == APR_SUCCESS && sendlen) { if (rv == APR_SUCCESS && sendlen) { while ((rv == APR_SUCCESS || rv == APR_EAGAIN) && sendlen) { bytes_sent = sendlen; rv = apr_socket_send(c->client_socket, &buffer[o], &bytes_sent); *nbytes += bytes_sent; Loading @@ -531,6 +532,7 @@ static apr_status_t emulate_sendfile(core_net_rec *c, apr_file_t *fd, } } } } /* Send the trailers * XXX: optimization... if it will fit, send this on the last send in the Loading