]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
stop reading NON-GET requests until they get resolved or forwarded
authorwessels <>
Thu, 11 Jun 1998 11:32:19 +0000 (11:32 +0000)
committerwessels <>
Thu, 11 Jun 1998 11:32:19 +0000 (11:32 +0000)
src/client_side.cc

index 6c1510d757d8bf4dc01c339676b772b126433949..d3762a7f46c91d4cc3f6ee1fd45f35d34be66d5a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.336 1998/06/10 06:00:22 wessels Exp $
+ * $Id: client_side.cc,v 1.337 1998/06/11 05:32:19 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -2469,6 +2469,11 @@ clientReadRequest(int fd, void *data)
                    if (conn->in.offset)
                        xmemmove(conn->in.buf, conn->in.buf + copy_len, conn->in.offset);
                }
+               /*
+                * ick; cancel the read handler for NON-GET requests
+                * until this request is forwarded/resolved
+                */
+               commSetSelect(fd, COMM_SELECT_READ, NULL, NULL, 0);
                break;
            }
            continue;           /* while offset > 0 */