Skip to content
Permalink
Browse files

Added more debug data for phantom http listeners

  • Loading branch information...
antoniomika committed Apr 20, 2019
1 parent bec0c0b commit ebe7603379c7374501f5f94dee9d81364722c7bd
Showing with 8 additions and 3 deletions.
  1. +8 −3 main.go
11 main.go
@@ -118,18 +118,23 @@ func main() {
go func() {
for {
log.Println("=======Start=========")
log.Println("====Goroutines====")
log.Println("===Goroutines=====")
log.Println(runtime.NumGoroutine())
log.Println("====Listeners=====")
log.Println("===Listeners======")
state.Listeners.Range(func(key, value interface{}) bool {
log.Println(key, value)
return true
})
log.Println("====Clients=======")
log.Println("===Clients========")
state.SSHConnections.Range(func(key, value interface{}) bool {
log.Println(key, value)
return true
})
log.Println("===HTTP Clients===")
state.HTTPListeners.Range(func(key, value interface{}) bool {
log.Println(key, value)
return true
})
log.Print("========End==========\n\n")

time.Sleep(2 * time.Second)

0 comments on commit ebe7603

Please sign in to comment.
You can’t perform that action at this time.