mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
Using read/write timeout in server config
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
6e183fd3d8
commit
1ca76e5e88
@ -84,6 +84,8 @@ func WithConfig(c engine.Config) (s *Server) {
|
||||
}),
|
||||
logger: glog.New("echo"),
|
||||
}
|
||||
s.ReadTimeout = c.ReadTimeout
|
||||
s.WriteTimeout = c.WriteTimeout
|
||||
s.Handler = s.ServeHTTP
|
||||
return
|
||||
}
|
||||
|
@ -82,6 +82,8 @@ func WithConfig(c engine.Config) (s *Server) {
|
||||
}),
|
||||
logger: glog.New("echo"),
|
||||
}
|
||||
s.ReadTimeout = c.ReadTimeout
|
||||
s.WriteTimeout = c.WriteTimeout
|
||||
s.Addr = c.Address
|
||||
s.Handler = s
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user