feat(agent/stream): remove STREAM_PORT and use tcp multiplexing on the same port

This commit is contained in:
yusing
2026-01-07 18:30:31 +08:00
parent cc406921cb
commit a605d56a4c
15 changed files with 410 additions and 81 deletions

View File

@@ -46,10 +46,9 @@ func NewAgentHandler() http.Handler {
mux.HandleFunc(agent.EndpointProxyHTTP+"/{path...}", ProxyHTTP)
mux.HandleFunc(agent.EndpointInfo, func(w http.ResponseWriter, r *http.Request) {
agentInfo := agent.AgentInfo{
Version: version.Get(),
Name: env.AgentName,
Runtime: env.Runtime,
StreamPort: env.AgentStreamPort,
Version: version.Get(),
Name: env.AgentName,
Runtime: env.Runtime,
}
sonic.ConfigDefault.NewEncoder(w).Encode(agentInfo)
})