Skip to content

Commit

Permalink
Ignore AppResponse timeouts for benching (#2066)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph authored Sep 22, 2023
1 parent e8c32b3 commit aad3067
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions snow/networking/timeout/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,11 @@ func (m *manager) RegisterRequest(
timeoutHandler func(),
) {
newTimeoutHandler := func() {
// If this request timed out, tell the benchlist manager
m.benchlistMgr.RegisterFailure(chainID, nodeID)
if requestID.Op != byte(message.AppResponseOp) {
// If the request timed out and wasn't an AppRequest, tell the
// benchlist manager.
m.benchlistMgr.RegisterFailure(chainID, nodeID)
}
timeoutHandler()
}
m.tm.Put(requestID, measureLatency, newTimeoutHandler)
Expand Down

0 comments on commit aad3067

Please sign in to comment.