()
| 861 | } |
| 862 | |
| 863 | func (s *Server) timeoutSpikeActive() bool { |
| 864 | s.timeoutSpikeMu.Lock() |
| 865 | defer s.timeoutSpikeMu.Unlock() |
| 866 | if time.Since(s.timeoutSpikeWin) > time.Minute { |
| 867 | return false |
| 868 | } |
| 869 | return s.timeoutSpikeCnt >= minTimeoutsPerMinuteForSpike |
| 870 | } |
| 871 | |
| 872 | type statusRecorder struct { |
| 873 | http.ResponseWriter |
no outgoing calls
no test coverage detected