-
- Downloads
Workhorse: simplify main http server
In 107e3cce we added support for multiple HTTP listeners to Workhorse. We created the internal/server package to handle the combined shutdown logic for multiple http.Server instances. In retrospect this was unnecessary because a single Go net/http.Server can have multiple listeners. This commit simplifies main.go to use a single http.Server instance again.
Showing
- workhorse/internal/server/server_test.go 0 additions, 165 deletionsworkhorse/internal/server/server_test.go
- workhorse/listener.go 41 additions, 0 deletionsworkhorse/listener.go
- workhorse/listener_test.go 94 additions, 0 deletionsworkhorse/listener_test.go
- workhorse/main.go 13 additions, 8 deletionsworkhorse/main.go
- workhorse/testdata/localhost.crt 0 additions, 0 deletionsworkhorse/testdata/localhost.crt
- workhorse/testdata/localhost.key 0 additions, 0 deletionsworkhorse/testdata/localhost.key
workhorse/listener_test.go
0 → 100644
File moved
Please register or sign in to comment