Fix URLTest selection and idle connection references

This commit is contained in:
世界
2026-11-24 22:45:20 +08:00
parent 70e4310bfa
commit 37fffa325b
26 changed files with 369 additions and 167 deletions
+3 -3
View File
@@ -127,12 +127,12 @@ func (s *Selector) AttachConnection(closer io.Closer) func() {
return s.interruptGroup.Add(closer, true)
}
func (s *Selector) References() []string {
func (s *Selector) References() ([]string, []string) {
selected := s.selected.Load()
if selected == nil {
return s.tags[:1]
return s.tags[:1], nil
}
return []string{selected.Tag()}
return []string{selected.Tag()}, nil
}
func (s *Selector) SelectOutbound(tag string) bool {