Skip to content

Commit

Permalink
Merge pull request #19 from savsgio/develop
Browse files Browse the repository at this point in the history
v5.5.0
  • Loading branch information
Sergio Andrés Virviescas Santana authored Nov 2, 2018
2 parents b660641 + 56f9996 commit 96df2f9
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 127 deletions.
90 changes: 0 additions & 90 deletions Gopkg.lock

This file was deleted.

35 changes: 0 additions & 35 deletions Gopkg.toml

This file was deleted.

5 changes: 3 additions & 2 deletions atreugo.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (s *Atreugo) Serve(ln net.Listener) error {

addr := ln.Addr().String()
if addr != s.lnAddr {
s.log.Info("Updating config with new listener address")
s.log.Info("Updating address config with the new listener address")
sAddr := strings.Split(addr, ":")
s.cfg.Host = sAddr[0]
if len(sAddr) > 1 {
Expand All @@ -139,10 +139,11 @@ func (s *Atreugo) Serve(ln net.Listener) error {
// with the Listener address and setting GracefulShutdown to true automatically.
func (s *Atreugo) ServeGracefully(ln net.Listener) error {
if !s.cfg.GracefulShutdown {
s.log.Info("Setting GracefulShutdown config to true")
s.log.Info("Updating GracefulShutdown config to 'true'")
s.cfg.GracefulShutdown = true

if s.server.ReadTimeout <= 0 {
s.log.Infof("Updating ReadTimeout config to '%v'", defaultReadTimeout)
s.server.ReadTimeout = defaultReadTimeout
s.cfg.Fasthttp.ReadTimeout = defaultReadTimeout
}
Expand Down
8 changes: 8 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module github.com/savsgio/atreugo

require (
github.com/fasthttp/router v0.2.0
github.com/savsgio/go-logger v0.0.0-20181102112400-e6a7c74978c0
github.com/valyala/bytebufferpool v1.0.0
github.com/valyala/fasthttp v1.0.0
)
18 changes: 18 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/fasthttp/router v0.2.0 h1:0EXdP2XpmxWEIdFDkyyIdQ0pDkEt5B5dnezDE7jHtw4=
github.com/fasthttp/router v0.2.0/go.mod h1:vgWu9Rb5tBJdw/1xy3J7oC+Yl5GJMn4DMKEaqXom8Lg=
github.com/klauspost/compress v1.4.0 h1:8nsMz3tWa9SWWPL60G1V6CUsf4lLjWLTNEtibhe8gh8=
github.com/klauspost/compress v1.4.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
github.com/klauspost/cpuid v0.0.0-20180405133222-e7e905edc00e h1:+lIPJOWl+jSiJOc70QXJ07+2eg2Jy2EC7Mi11BWujeM=
github.com/klauspost/cpuid v0.0.0-20180405133222-e7e905edc00e/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek=
github.com/savsgio/go-logger v0.0.0-20181102112400-e6a7c74978c0 h1:BnYHq7EjtqUp3Z0utOF526x/b+FZErMzgH9FIB0BbGk=
github.com/savsgio/go-logger v0.0.0-20181102112400-e6a7c74978c0/go.mod h1:/ZzTTmB3JJqjZQcLlxTGbwy3fIsLUoYyldsSEL5rU2g=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasthttp v0.0.0-20181101044417-192515395f6f/go.mod h1:4vX61m6KN+xDduDNwXrhIAVZaZaZiQ1luJk8LWSxF3s=
github.com/valyala/fasthttp v1.0.0 h1:BwIoZQbBsTo3v2F5lz5Oy3TlTq4wLKTLV260EVTEWco=
github.com/valyala/fasthttp v1.0.0/go.mod h1:4vX61m6KN+xDduDNwXrhIAVZaZaZiQ1luJk8LWSxF3s=
github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a h1:0R4NLDRDZX6JcmhJgXi5E4b8Wg84ihbmUKp/GvSPEzc=
github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio=
golang.org/x/net v0.0.0-20180911220305-26e67e76b6c3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=

0 comments on commit 96df2f9

Please sign in to comment.