You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When starting the debug agent, multiple ports from 6060 to 6100 are being listened to. Is the intention here to avoid a single port being occupied? If so, it seems that the behavior should be modified so that once a successful ListenAndServe (encountering a free port) occurs, the process should stop occupying additional ports.I can help fix it (if it is indeed a bug).
// cmd/main.go
if !c.Bool("no-agent") {
go debugAgentOnce.Do(func() {
for port := 6060; port < 6100; port++ {
debugAgent = fmt.Sprintf("127.0.0.1:%d", port)
logger.Debugf("Debug agent listening on %s", debugAgent)
_ = http.ListenAndServe(debugAgent, nil)
}
})
}
The text was updated successfully, but these errors were encountered:
When starting the debug agent, multiple ports from 6060 to 6100 are being listened to. Is the intention here to avoid a single port being occupied? If so, it seems that the behavior should be modified so that once a successful ListenAndServe (encountering a free port) occurs, the process should stop occupying additional ports.I can help fix it (if it is indeed a bug).
The text was updated successfully, but these errors were encountered: