double-socket statistics in comm.c ?

From: Adrian Chadd <adrian_at_squid-cache.org>
Date: Fri, 27 Jun 2008 13:05:39 +0800

This is from src/comm.c on squid-2.HEAD in commResetFD():

    statCounter.syscalls.sock.sockets++;
    fd2 = socket(AF_INET, SOCK_STREAM, 0);
    statCounter.syscalls.sock.sockets++;

Is there a reason for the statistics to be double-incremented?

Adrian
Received on Fri Jun 27 2008 - 05:05:44 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 27 2008 - 12:00:07 MDT