summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-10-17 19:27:08 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-10-17 19:27:08 +0000
commit69be2b84d7f93ecbecd8a846c6fbec256715694c (patch)
treeb72ea23818a349b20725a3ec72e12a64cfaa9665
parent1d39f204cad86a8f78af3fa904cbbb510eb22b72 (diff)
downloadtinyproxy-69be2b84d7f93ecbecd8a846c6fbec256715694c.tar.gz
tinyproxy-69be2b84d7f93ecbecd8a846c6fbec256715694c.zip
(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.
-rw-r--r--src/reqs.c4
1 files 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;
}