]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
check when theInIcpConnection == theOutIcpConnection
authorwessels <>
Wed, 18 Dec 1996 12:09:05 +0000 (12:09 +0000)
committerwessels <>
Wed, 18 Dec 1996 12:09:05 +0000 (12:09 +0000)
src/comm.cc

index 75ec644be785b0b050e6aa88f9330cbe8b3b99e0..6109c9d102d492822725d271e11eb7f387e1b8de 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.121 1996/12/17 22:34:16 wessels Exp $
+ * $Id: comm.cc,v 1.122 1996/12/18 05:09:05 wessels Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -629,8 +629,9 @@ comm_select_incoming(void)
     PF hdl = NULL;
     if (theInIcpConnection >= 0)
        fds[N++] = theInIcpConnection;
-    if (theOutIcpConnection >= 0)
-       fds[N++] = theOutIcpConnection;
+    if (theInIcpConnection != theOutIcpConnection)
+        if (theOutIcpConnection >= 0)
+           fds[N++] = theOutIcpConnection;
     if (theHttpConnection >= 0 && fdstat_are_n_free_fd(RESERVED_FD))
        fds[N++] = theHttpConnection;
     fds[N++] = 0;
@@ -692,8 +693,9 @@ comm_select_incoming(void)
        fds[N++] = theHttpConnection;
     if (theInIcpConnection >= 0)
        fds[N++] = theInIcpConnection;
-    if (theOutIcpConnection >= 0)
-       fds[N++] = theOutIcpConnection;
+    if (theInIcpConnection != theOutIcpConnection)
+       if (theOutIcpConnection >= 0)
+           fds[N++] = theOutIcpConnection;
     fds[N++] = 0;
     for (i = 0; i < N; i++) {
        fd = fds[i];