Commit 172d1b5a authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

r31764@cat (orig r1133): phk | 2006-09-29 20:37:02 +0200

 Don't suffer if one side of a piped connection keeps blasting away.
 


git-svn-id: http://www.varnish-cache.org/svn/branches/1.0@1172 d4fa192b-c00b-0410-8231-f00ffab90ce4
parents 8eff0314 6999199f
......@@ -49,7 +49,7 @@ rdf(struct pollfd *fds, int idx)
char buf[BUFSIZ];
i = read(fds[idx].fd, buf, sizeof buf);
if (i <= 0) {
if (i <= 0 || fds[1-idx].events == 0) {
VSL(SLT_Debug, fds[idx].fd, "Pipe Shut read(read)");
VSL(SLT_Debug, fds[1-idx].fd, "Pipe Shut write(read)");
shutdown(fds[idx].fd, SHUT_RD);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment