diff --git a/app/dispatcher/default.go b/app/dispatcher/default.go index ec81b3fe..b329292c 100644 --- a/app/dispatcher/default.go +++ b/app/dispatcher/default.go @@ -391,14 +391,14 @@ func sniffer(ctx context.Context, cReader *cachedReader, metadataOnly bool, netw case common.ErrNoClue: // No Clue: protocol not matches, and sniffer cannot determine whether there will be a match or not totalAttempt++ case protocol.ErrProtoNeedMoreData: // Protocol Need More Data: protocol matches, but need more data to complete sniffing - totalAttempt++ + break default: return result, err } } else { return nil, io.EOF } - if totalAttempt >= 32 || cacheDeadline <= 0 { + if totalAttempt >= 2 || cacheDeadline <= 0 { return nil, errSniffingTimeout } }