HTTPConnectionTTLMiddleware is an HTTP middleware that limits the maximum lifetime of TCP connections.
| 42 | // HTTPConnectionTTLMiddleware is an HTTP middleware that limits the maximum lifetime |
| 43 | // of TCP connections. |
| 44 | type HTTPConnectionTTLMiddleware interface { |
| 45 | Interface |
| 46 | |
| 47 | // Stop stops the middleware and releases associated resources. |
| 48 | // It is safe to call Stop even if the middleware was created with TTL disabled. |
| 49 | Stop() |
| 50 | } |
| 51 | |
| 52 | type httpConnectionTTLMiddleware struct { |
| 53 | minTTL time.Duration |
no outgoing calls
no test coverage detected