summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-11-13 17:48:48 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-11-13 17:48:48 +0000
commitd40a4e8af7ed599d34497f9246672f6850dc4478 (patch)
tree0e9a660c69359c83d19243dde88486962bfece88
parenta1e24ac8399b0f5b86599a5258ea5b2d8d002820 (diff)
downloadtinyproxy-d40a4e8af7ed599d34497f9246672f6850dc4478.tar.gz
tinyproxy-d40a4e8af7ed599d34497f9246672f6850dc4478.zip
(relay_connection): Shutdown the client socket for writing once all
the data has been sent.
-rw-r--r--src/reqs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/reqs.c b/src/reqs.c
index 7cc98bd..ebd788e 100644
--- a/src/reqs.c
+++ b/src/reqs.c
@@ -1,4 +1,4 @@
-/* $Id: reqs.c,v 1.84 2002-11-03 17:10:32 rjkaes Exp $
+/* $Id: reqs.c,v 1.85 2002-11-13 17:48:48 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
@@ -1103,6 +1103,7 @@ relay_connection(struct conn_s *connptr)
if (write_buffer(connptr->client_fd, connptr->sbuffer) < 0)
break;
}
+ shutdown(connptr->client_fd, SHUT_WR);
/*
* Try to send any remaining data to the server if we can.