From: phk Date: Fri, 6 Jun 2008 10:42:55 +0000 (+0000) Subject: Duh! X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39c42a31e35a7f584974f7711243d9567a00ca4a;p=varnish Duh! I had the sense of FIONBIO args right in the first place. Revert 2647 and promise not to commit when sleepy. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2651 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/tcp.c b/varnish-cache/bin/varnishd/tcp.c index c2e53408..9cedd8c3 100644 --- a/varnish-cache/bin/varnishd/tcp.c +++ b/varnish-cache/bin/varnishd/tcp.c @@ -127,7 +127,7 @@ TCP_blocking(int sock) { int i; - i = 1; + i = 0; AZ(ioctl(sock, FIONBIO, &i)); } @@ -136,7 +136,7 @@ TCP_nonblocking(int sock) { int i; - i = 0; + i = 1; AZ(ioctl(sock, FIONBIO, &i)); }