Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: [ main ]
branches: [ main, yevhenii/proxy-fixes ]
pull_request:
branches: [ main ]

Expand Down
23 changes: 23 additions & 0 deletions cmd/boundary/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,34 @@ package main

import (
"fmt"
"log"
"os"

"github.com/coder/boundary/cli"
)

import (
"net/http"
_ "net/http/pprof"
)

func init() {
go func() {
//time.Sleep(time.Millisecond * time.Duration(rand.Intn(1000)))
log.Println("Going to listen on 6060 or 6061")

if err := http.ListenAndServe("0.0.0.0:6060", nil); err != nil {
if err := http.ListenAndServe("0.0.0.0:6061", nil); err != nil {
log.Println("pprof failed to start on both ports:", err)
return
}
log.Println("pprof listening on :6061")
return
}
log.Println("pprof listening on :6060")
}()
}

// Version information injected at build time
var (
//nolint:unused
Expand Down
Loading