]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
set a reasonable default for the accept checking.
authoradrian <>
Sun, 27 Oct 2002 21:15:49 +0000 (21:15 +0000)
committeradrian <>
Sun, 27 Oct 2002 21:15:49 +0000 (21:15 +0000)
src/comm.cc

index 9854ecab205f82588625faced55335273d99490e..de1c4eefb9a1f52b61e1e50ac63ce34741b7a9f8 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.356 2002/10/27 14:13:35 adrian Exp $
+ * $Id: comm.cc,v 1.357 2002/10/27 14:15:49 adrian Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -595,6 +595,10 @@ comm_read_cancel(int fd, IOCB *callback, void *data)
 }
 
 
+/*
+ * Open a filedescriptor, set some sane defaults
+ * + accept() poll time is 250ms
+ */
 void
 fdc_open(int fd, unsigned int type, char *desc)
 {
@@ -602,6 +606,7 @@ fdc_open(int fd, unsigned int type, char *desc)
 
        fdc_table[fd].active = 1;
        fdc_table[fd].fd = fd;
+       comm_accept_setcheckperiod(fd, 250);
        fd_open(fd, type, desc);
 }