Skip to content

Commit

Permalink
Added client tracking to server
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin committed Jan 20, 2014
1 parent c23ed19 commit b887139
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/hex"
"encoding/json"
"errors"
"expvar"
"flag"
"fmt"
"log"
Expand All @@ -17,6 +18,7 @@ import (
"github.com/couchbaselabs/cbfs/config"
"github.com/dustin/go-humanize"
"github.com/dustin/gomemcached"
"github.com/dustin/httputil"
)

var bindAddr = flag.String("bind", ":8484", "Address to bind web thing to")
Expand Down Expand Up @@ -182,6 +184,7 @@ func main() {
initNodeListKeys()

http.DefaultTransport = TimeoutTransport(*internodeTimeout)
expvar.Publish("httpclients", httputil.InitHTTPTracker(false))

if getHash() == nil {
fmt.Fprintf(os.Stderr,
Expand Down

0 comments on commit b887139

Please sign in to comment.