Skip to content

Commit 96df2f9

Browse files
author
Sergio Andrés Virviescas Santana
authored
Merge pull request #19 from savsgio/develop
v5.5.0
2 parents b660641 + 56f9996 commit 96df2f9

File tree

5 files changed

+29
-127
lines changed

5 files changed

+29
-127
lines changed

Gopkg.lock

Lines changed: 0 additions & 90 deletions
This file was deleted.

Gopkg.toml

Lines changed: 0 additions & 35 deletions
This file was deleted.

atreugo.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (s *Atreugo) Serve(ln net.Listener) error {
112112

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

145145
if s.server.ReadTimeout <= 0 {
146+
s.log.Infof("Updating ReadTimeout config to '%v'", defaultReadTimeout)
146147
s.server.ReadTimeout = defaultReadTimeout
147148
s.cfg.Fasthttp.ReadTimeout = defaultReadTimeout
148149
}

go.mod

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module github.com/savsgio/atreugo
2+
3+
require (
4+
github.com/fasthttp/router v0.2.0
5+
github.com/savsgio/go-logger v0.0.0-20181102112400-e6a7c74978c0
6+
github.com/valyala/bytebufferpool v1.0.0
7+
github.com/valyala/fasthttp v1.0.0
8+
)

go.sum

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

0 commit comments

Comments
 (0)