diff options
author | Wolfy-J <[email protected]> | 2019-01-05 13:35:58 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-01-05 13:35:58 +0300 |
commit | 04f7ac73c477938b7390ec6ec101d0e4bcc8cd80 (patch) | |
tree | 361c8cd8a00824d0b2e5003c6a5978f630c20469 /service/http/service.go | |
parent | 46009112a783a1fdae95e0a061d4c8c41a1c8ff1 (diff) |
second set of patches
Diffstat (limited to 'service/http/service.go')
-rw-r--r-- | service/http/service.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/service/http/service.go b/service/http/service.go index ad59f887..eb97233d 100644 --- a/service/http/service.go +++ b/service/http/service.go @@ -7,11 +7,13 @@ import ( "github.com/spiral/roadrunner/service/env" "github.com/spiral/roadrunner/service/http/attributes" "github.com/spiral/roadrunner/service/rpc" + "github.com/spiral/roadrunner/util" "golang.org/x/net/http2" "net/http" "net/url" "strings" "sync" + "time" ) const ( @@ -77,8 +79,9 @@ func (s *Service) Serve() error { s.rr = roadrunner.NewServer(s.cfg.Workers) s.rr.Listen(s.throw) - s.handler = &Handler{cfg: s.cfg, rr: s.rr} + s.handler = &Handler{ft: util.NewFastTime(time.Microsecond), cfg: s.cfg, rr: s.rr} s.handler.Listen(s.throw) + defer s.handler.ft.Stop() s.http = &http.Server{Addr: s.cfg.Address, Handler: s} |