if (APR_STATUS_IS_EAGAIN(rv)) {
rv = APR_SUCCESS;
}
+ else if (rv != APR_SUCCESS) {
+ /* The client has aborted the connection */
+ c->aborted = 1;
+ }
setaside_remaining_output(f, ctx, bb, 0, c);
return rv;
}
apr_status_t rv = send_brigade_blocking(net->client_socket, bb,
&(ctx->bytes_written), c);
if (rv != APR_SUCCESS) {
+ /* The client has aborted the connection */
+ c->aborted = 1;
return rv;
}
bb = remainder;
apr_status_t rv = send_brigade_blocking(net->client_socket, bb,
&(ctx->bytes_written), c);
if (rv != APR_SUCCESS) {
+ /* The client has aborted the connection */
+ c->aborted = 1;
return rv;
}
}
apr_status_t rv = send_brigade_nonblocking(net->client_socket, bb,
&(ctx->bytes_written), c);
if ((rv != APR_SUCCESS) && (!APR_STATUS_IS_EAGAIN(rv))) {
+ /* The client has aborted the connection */
+ c->aborted = 1;
return rv;
}
}