You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@locus.apache.org on 2000/11/28 18:14:12 UTC
cvs commit: apache-2.0/src/modules/standard mod_echo.c
rbb 00/11/28 09:14:10
Modified: src/modules/standard mod_echo.c
Log:
Get mod_echo to stop using BUFF.
Submitted by: David Reid
Revision Changes Path
1.27 +4 -3 apache-2.0/src/modules/standard/mod_echo.c
Index: mod_echo.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_echo.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- mod_echo.c 2000/10/16 06:05:05 1.26
+++ mod_echo.c 2000/11/28 17:14:09 1.27
@@ -99,13 +99,14 @@
for( ; ; )
{
apr_ssize_t r, w;
- (void) ap_bread(c->client,buf,sizeof buf,&r);
+ r = sizeof(buf);
+ apr_recv(c->client_socket, buf, &r);
if(r <= 0)
break;
- (void) ap_bwrite(c->client,buf,r, &w);
+ w = r;
+ apr_send(c->client_socket, buf, &w);
if(w != r)
break;
- ap_bflush(c->client);
}
return OK;
}