From: Alex Rousskov Date: Fri, 12 Sep 2008 02:59:51 +0000 (-0600) Subject: Cleaned up reconfiguration sequence. X-Git-Tag: SQUID_3_1_0_1~49^2~46^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b47a0851f61acf2aca8a72ecf7a0dd7bc945d604;p=thirdparty%2Fsquid.git Cleaned up reconfiguration sequence. mainReconfigure() used to close and then open various sockets. Since comm_close is now asynchronous, one cannot close and open in the same function. Split mainReconfigure into mainReconfigureStart (that starts the closing process for all relevant sockets) and mainReconfigureFinish that opens the new sockets. serverConnectionsClose is only used by main.cc and, hence, can be static. Polished comments and added an XXX comment on why SquidShutdown is broken. Also removed commCheckHalfClosed event scheduling. A separate cleanup patch removes the associated half-closed monitoring loop. --- b47a0851f61acf2aca8a72ecf7a0dd7bc945d604