File tree Expand file tree Collapse file tree 5 files changed +29
-127
lines changed Expand file tree Collapse file tree 5 files changed +29
-127
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ func (s *Atreugo) Serve(ln net.Listener) error {
112
112
113
113
addr := ln .Addr ().String ()
114
114
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" )
116
116
sAddr := strings .Split (addr , ":" )
117
117
s .cfg .Host = sAddr [0 ]
118
118
if len (sAddr ) > 1 {
@@ -139,10 +139,11 @@ func (s *Atreugo) Serve(ln net.Listener) error {
139
139
// with the Listener address and setting GracefulShutdown to true automatically.
140
140
func (s * Atreugo ) ServeGracefully (ln net.Listener ) error {
141
141
if ! s .cfg .GracefulShutdown {
142
- s .log .Info ("Setting GracefulShutdown config to true" )
142
+ s .log .Info ("Updating GracefulShutdown config to ' true' " )
143
143
s .cfg .GracefulShutdown = true
144
144
145
145
if s .server .ReadTimeout <= 0 {
146
+ s .log .Infof ("Updating ReadTimeout config to '%v'" , defaultReadTimeout )
146
147
s .server .ReadTimeout = defaultReadTimeout
147
148
s .cfg .Fasthttp .ReadTimeout = defaultReadTimeout
148
149
}
Original file line number Diff line number Diff line change
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
+ )
Original file line number Diff line number Diff line change
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 =
You can’t perform that action at this time.
0 commit comments