]> err.no Git - varnish/commitdiff
Typo: Also monitor remote sockets with the poll based acceptor.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 2 Aug 2006 12:05:19 +0000 (12:05 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 2 Aug 2006 12:05:19 +0000 (12:05 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@603 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_acceptor.c

index e2fb508e4e080dc0c056ac20feceea25c3a1fd00..272a1cff97994b000454885a4000ca1caf14c748 100644 (file)
@@ -180,7 +180,7 @@ vca_main(void *arg)
                if (heritage.sock_local[u] >= 0)
                        vca_poll(heritage.sock_local[u]);
                if (heritage.sock_remote[u] >= 0)
-                       vca_poll(heritage.sock_local[u]);
+                       vca_poll(heritage.sock_remote[u]);
        }
 
        while (1) {
@@ -203,7 +203,7 @@ vca_main(void *arg)
                        }
                        if (heritage.sock_remote[u] >= 0 &&
                            pollfd[heritage.sock_remote[u]].revents) {
-                               accept_f(heritage.sock_local[u]);
+                               accept_f(heritage.sock_remote[u]);
                                v--;
                        }
                }