]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1043: syscalls.sock.read/write and syscalls.sock.sockets are not accounted corre...
authorhno <>
Sun, 7 Nov 2004 05:11:39 +0000 (05:11 +0000)
committerhno <>
Sun, 7 Nov 2004 05:11:39 +0000 (05:11 +0000)
src/comm.cc

index 0d6666a62dc1291c3c261dc46fc398cf5160c380..3a638a90d3a53d9ad80a31997c7c93f09118435c 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.396 2004/10/18 12:20:09 hno Exp $
+ * $Id: comm.cc,v 1.397 2004/11/06 22:11:39 hno Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -844,7 +844,7 @@ comm_write_try(int fd, void *data)
     assert(Fc->write.handler != NULL);
 
     /* Attempt a write */
-    statCounter.syscalls.sock.reads++;
+    statCounter.syscalls.sock.writes++;
     errno = 0;
     retval = FD_WRITE_METHOD(fd, Fc->write.buf + Fc->write.curofs, Fc->write.size - Fc->write.curofs);
     debug(5, 3) ("comm_write_try: fd %d: tried to write %d bytes, retval %d, errno %d\n",
@@ -1298,8 +1298,6 @@ commResetFD(ConnectStateData * cs)
 
     int fd2 = socket(AF_INET, SOCK_STREAM, 0);
 
-    statCounter.syscalls.sock.sockets++;
-
     if (fd2 < 0) {
         debug(5, 0) ("commResetFD: socket: %s\n", xstrerror());