Skip to content

Commit aad3067

Browse files
Ignore AppResponse timeouts for benching (#2066)
1 parent e8c32b3 commit aad3067

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

snow/networking/timeout/manager.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,11 @@ func (m *manager) RegisterRequest(
125125
timeoutHandler func(),
126126
) {
127127
newTimeoutHandler := func() {
128-
// If this request timed out, tell the benchlist manager
129-
m.benchlistMgr.RegisterFailure(chainID, nodeID)
128+
if requestID.Op != byte(message.AppResponseOp) {
129+
// If the request timed out and wasn't an AppRequest, tell the
130+
// benchlist manager.
131+
m.benchlistMgr.RegisterFailure(chainID, nodeID)
132+
}
130133
timeoutHandler()
131134
}
132135
m.tm.Put(requestID, measureLatency, newTimeoutHandler)

0 commit comments

Comments
 (0)