1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 12:57:05 +00:00

Multiserver listening - Try first for https://github.com/kataras/iris/issues/235 - example added

This commit is contained in:
Makis Maropoulos
2016-06-29 16:25:17 +03:00
parent 9d8f32ce1a
commit 5b8f4dc1b0
3 changed files with 52 additions and 2 deletions

View File

@@ -176,7 +176,7 @@ func (s *Framework) openServer() (err error) {
// closeServer is used to close the tcp listener from the server, returns an error
func (s *Framework) closeServer() error {
s.Plugins.DoPreClose(s)
return s.HTTPServer.close()
return s.HTTPServer.Close()
}
// justServe initializes the whole framework but server doesn't listens to a specific net.Listener