Collect client&server connection count, better debug message.

Some debug messages now contain "client: <remote addr>", we can group debug
message by client by grep and sorting on remote addr.
This commit is contained in:
Chen Yufei
2013-07-28 00:59:01 +08:00
parent 8147afc57e
commit 76dbf0ed80
4 changed files with 133 additions and 50 deletions

View File

@@ -50,6 +50,8 @@ func main() {
initSiteStat()
initPAC() // initPAC uses siteStat, so must init after site stat
initStat()
if len(parentProxy) == 0 {
info.Println("no parent proxy server, can't handle blocked sites")
} else {