MCPcopy
hub / github.com/puma/puma-dev / AppClosed

Method AppClosed

dev/http.go:89–95  ·  view source on GitHub ↗
(app *App)

Source from the content-addressed store, hash-verified

87}
88
89func (h *HTTPServer) AppClosed(app *App) {
90 // Whenever an app is closed, wipe out all idle conns. This
91 // obviously closes down more than just this one apps connections
92 // but that's ok.
93 h.unixTransport.CloseIdleConnections()
94 h.tcpTransport.CloseIdleConnections()
95}
96
97func (h *HTTPServer) removeTLD(host string) string {
98 colon := strings.LastIndexByte(host, ':')

Callers 1

removeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected