(totalRead, totalWrite int64)
| 151 | } |
| 152 | |
| 153 | func (pxy *HTTPProxy) updateStatsAfterClosedConn(totalRead, totalWrite int64) { |
| 154 | name := pxy.GetName() |
| 155 | proxyType := pxy.GetConfigurer().GetBaseConfig().Type |
| 156 | metrics.Server.CloseConnection(name, proxyType) |
| 157 | metrics.Server.AddTrafficIn(name, proxyType, totalWrite) |
| 158 | metrics.Server.AddTrafficOut(name, proxyType, totalRead) |
| 159 | } |
| 160 | |
| 161 | func (pxy *HTTPProxy) Close() { |
| 162 | pxy.BaseProxy.Close() |
nothing calls this directly
no test coverage detected