projects
/
btrtrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd240b6
)
loghttp: The status server should run on the default mux
author
Matt Joiner <anacrolix@gmail.com>
Thu, 20 Nov 2014 02:00:43 +0000 (20:00 -0600)
committer
Matt Joiner <anacrolix@gmail.com>
Thu, 20 Nov 2014 02:00:43 +0000 (20:00 -0600)
util/loghttp.go
patch
|
blob
|
history
diff --git
a/util/loghttp.go
b/util/loghttp.go
index f222c41f8258cceca6c21cdbcd39a4f3746536fb..f324cc21d66f0e71edd847c28fa790867cc97ea0 100644
(file)
--- a/
util/loghttp.go
+++ b/
util/loghttp.go
@@
-4,6
+4,7
@@
import (
"log"
"net"
"net/http"
+ _ "net/http/pprof"
)
func LoggedHTTPServe(addr string) *http.ServeMux {
@@
-26,7
+27,7
@@
func LoggedHTTPServe(addr string) *http.ServeMux {
log.Fatalf("error creating http conn: %#v", err)
}
log.Printf("starting http server on http://%s", conn.Addr())
- mux := http.
NewServeMux()
+ mux := http.
DefaultServeMux
go func() {
defer conn.Close()
err = (&http.Server{