Hi,
The following snippet of code is from the http_protocol.c from
Apache1.3. I would like to know what its equivalent would be in
Apache2.0. Here is the code.
static int send_buffer( request_rec *r, void *buf, size_t len ){
unsigned written;
written = ap_bwrite( r->connection->client, buf, len );
if (written > 0)
ap_reset_timeout(r);
else
if (written < 0){
if (!r->connection->aborted){
ap_log_rerror( APLOG_MARK, APLOG_INFO,0,r,
"client stopped connection before send body completed" );
ap_bsetflag( r->connection->client, B_EOUT, 1 );
r->connection->aborted = 1;
}
return 0;
}
return written;
}
Thanks in advance