MCPcopy
hub / github.com/fatedier/frp / updateStatsAfterClosedConn

Method updateStatsAfterClosedConn

server/proxy/http.go:153–159  ·  view source on GitHub ↗
(totalRead, totalWrite int64)

Source from the content-addressed store, hash-verified

151}
152
153func (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
161func (pxy *HTTPProxy) Close() {
162 pxy.BaseProxy.Close()

Callers

nothing calls this directly

Calls 6

GetNameMethod · 0.65
GetBaseConfigMethod · 0.65
GetConfigurerMethod · 0.65
CloseConnectionMethod · 0.65
AddTrafficInMethod · 0.65
AddTrafficOutMethod · 0.65

Tested by

no test coverage detected