]> err.no Git - varnish/commitdiff
Duh!
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 6 Jun 2008 10:42:55 +0000 (10:42 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 6 Jun 2008 10:42:55 +0000 (10:42 +0000)
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

varnish-cache/bin/varnishd/tcp.c

index c2e53408fae969f4938c59696ef484a43c0ec3c1..9cedd8c34c87c683145fcfa51f85df68c73fc30c 100644 (file)
@@ -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));
 }