forked from quic-go/quic-go
add pprof support to example server
This commit is contained in:
@@ -6,14 +6,20 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
_ "net/http/pprof"
|
||||
|
||||
"github.com/lucas-clemente/quic-go/h2quic"
|
||||
"github.com/lucas-clemente/quic-go/testdata"
|
||||
"github.com/lucas-clemente/quic-go/utils"
|
||||
)
|
||||
|
||||
func main() {
|
||||
go func() {
|
||||
log.Println(http.ListenAndServe("localhost:6060", nil))
|
||||
}()
|
||||
verbose := flag.Bool("v", false, "verbose")
|
||||
bindTo := flag.String("bind", "localhost", "bind to")
|
||||
certPath := flag.String("certpath", "", "certificate directory")
|
||||
|
||||
Reference in New Issue
Block a user