arangodb / arangojs

The official ArangoDB JavaScript driver.
https://arangodb.github.io/arangojs
Apache License 2.0
601 stars 107 forks source link

Infinite loop in connection.js:177 #795

Closed westtrade closed 9 months ago

westtrade commented 1 year ago
  if (queueTime) {
        this._queueTimes.push([Date.now(), Number(queueTime)]);
        while (this._responseQueueTimeSamples < this._queueTimes.length) {
            this._queueTimes.shift();
        }

    }

The this._responseQueueTimeSamples < this._queueTimes.length conditiona always will true, because this._queueTimes doesn't change their sizes.

screen-capture (1).webm

westtrade commented 1 year ago

The same issue has all LinkedLists

pluma4345 commented 1 year ago

I can't seem to reproduce this problem:

const list = new LinkedList();
list.push("a");
console.log(list.length); // 1
list.shift();
console.log(list.length); // 0

Can you specify the version of Node, arangojs and x3-linkedlist you're using?

pluma4345 commented 9 months ago

This issue has been waiting for feedback for a while and there is nothing actionable here at the time, so I'm closing it for now. Feel free to re-open the issue if you can provide a reproducible example of the problem persisting in the latest version.