(app *App)
| 87 | } |
| 88 | |
| 89 | func (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 | |
| 97 | func (h *HTTPServer) removeTLD(host string) string { |
| 98 | colon := strings.LastIndexByte(host, ':') |