Commit f410deb6 authored by Ryan Bloom's avatar Ryan Bloom
Browse files

Get mod_echo to stop using BUFF.

Submitted by:	David Reid


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87102 13f79535-47bb-0310-9956-ffa450edef68
parent 2d430fb8
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -99,13 +99,14 @@ static int process_echo_connection(conn_rec *c)
    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;
    }