r603 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Aug 2 14:05:19 CEST 2006


Author: phk
Date: 2006-08-02 14:05:19 +0200 (Wed, 02 Aug 2006)
New Revision: 603

Modified:
   trunk/varnish-cache/bin/varnishd/cache_acceptor.c
Log:
Typo: Also monitor remote sockets with the poll based acceptor.


Modified: trunk/varnish-cache/bin/varnishd/cache_acceptor.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_acceptor.c	2006-08-02 11:58:54 UTC (rev 602)
+++ trunk/varnish-cache/bin/varnishd/cache_acceptor.c	2006-08-02 12:05:19 UTC (rev 603)
@@ -180,7 +180,7 @@
 		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 @@
 			}
 			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--;
 			}
 		}




More information about the varnish-commit mailing list