Skip to content

Potential problem of "InvokeId" reuse #51

@crossrw

Description

@crossrw

Node Version: any

Node BACstack Version: 0.2.4

  • Bug Report
  • Feature Request
  • Question

Feature Request / Question

It seems to me that there is a potential issue of InvokeId reuse. It is guaranteed to occur when more than 256 BACnet devices are accessed simultaneously. At the moment, "_getInvokeId()" simply returns the next value in order, without checking its reuse.
I have no idea how to fix this yet. In my opinion, ideally there should be a queue of free "InvokeId" values. When this queue is exhausted, execution should pause waiting for free values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions