Skip to content

Commit

Permalink
Merge pull request #7 from inplayer-org/fix-delay
Browse files Browse the repository at this point in the history
Delay response only if avg latency is set
  • Loading branch information
FilipNikolovski authored Oct 29, 2021
2 parents 636677d + eb5bd70 commit e0bf6fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ func (s *StubServer) HandleRequest(w http.ResponseWriter, r *http.Request) {
// Delaying the response according to acg-latency and stdv
//

s.delay()
if s.delayResponses {
s.delay()
}

//
// Validate headers
Expand Down

0 comments on commit e0bf6fe

Please sign in to comment.