From 69be2b84d7f93ecbecd8a846c6fbec256715694c Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Thu, 17 Oct 2002 19:27:08 +0000 Subject: (relay_connection): Ivan pointed out a bug with the code to send any remaining data to the server when the connections are being closed. It was a one line fix. --- src/reqs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reqs.c b/src/reqs.c index aca329e..c022a75 100644 --- a/src/reqs.c +++ b/src/reqs.c @@ -1,4 +1,4 @@ -/* $Id: reqs.c,v 1.82 2002-06-06 20:32:30 rjkaes Exp $ +/* $Id: reqs.c,v 1.83 2002-10-17 19:27:08 rjkaes Exp $ * * This is where all the work in tinyproxy is actually done. Incoming * connections have a new child created for them. The child then @@ -1121,7 +1121,7 @@ relay_connection(struct conn_s *connptr) */ socket_blocking(connptr->server_fd); while (buffer_size(connptr->cbuffer) > 0) { - if (write_buffer(connptr->client_fd, connptr->cbuffer) < 0) + if (write_buffer(connptr->server_fd, connptr->cbuffer) < 0) break; } -- cgit v1.2.3