[Remove entries to the current 2.0 section below, when backported]
+ *) mod_logio: Account for some bytes handed to the network layer prior to
+ dropped connections. [Jeff Trawick]
+
*) Fix a problem with the display of empty variables ("SetEnv foo") in
mod_include. PR 24734 [Markus Julen <mj zermatt.net>]
/* XXX handle checking for non-blocking socket */
while (bytes_written != len) {
rv = apr_socket_sendv(s, vec + i, nvec - i, &n);
+ *nbytes += n;
bytes_written += n;
if (rv != APR_SUCCESS)
return rv;
- *nbytes += n;
-
/* If the write did not complete, adjust the iovecs and issue
* apr_socket_sendv again
*/
rv = writev_it_all(c->client_socket, hdtr->headers, hdtr->numheaders,
sendlen, &bytes_sent);
- if (rv == APR_SUCCESS)
- *nbytes += bytes_sent; /* track total bytes sent */
+ *nbytes += bytes_sent; /* track total bytes sent */
}
/* Seek the file to 'offset' */
while (rv == APR_SUCCESS && sendlen) {
bytes_sent = sendlen;
rv = apr_socket_send(c->client_socket, &buffer[o], &bytes_sent);
+ *nbytes += bytes_sent;
if (rv == APR_SUCCESS) {
sendlen -= bytes_sent; /* sendlen != bytes_sent ==> partial write */
o += bytes_sent; /* o is where we are in the buffer */
- *nbytes += bytes_sent;
togo -= bytes_sent; /* track how much of the file we've sent */
}
}
}
rv = writev_it_all(c->client_socket, hdtr->trailers, hdtr->numtrailers,
sendlen, &bytes_sent);
- if (rv == APR_SUCCESS)
- *nbytes += bytes_sent;
+ *nbytes += bytes_sent;
}
return rv;