-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArrayBuffer errors with large amounts of messages #55
Comments
The track routed messages are on average 63 uint8's long. |
I'm running amqp-client in the browser over websockets, and I got the first of these exceptions. I wouldn't say I was receiving a lot of data at once unless the browser decided to batch a bunch of messages. The error did appear to repeat for every message until the connection was closed by a heartbeat timeout. The native .NET clients had no problems with the same traffic. I'm not very familiar with byte and buffer manipulation in JavaScript, so I'm just spit-balling:
|
Thank you for reporting, and your assessment is right. Also surprised that typescript doesn't react to it.. |
Will try to reproduce the |
There's no test coverage for As for TypeScript, the |
Also, recent versions of node implement these same buffer and data view types, so maybe move back to a common set of code for most of this logic? |
I'm still having errors related to this issue and am getting "ERROR RangeError: offset is out of bounds" exceptions. Somehow, This happens after some indeterminate number of messages. In this case it was 41,360 WebSocket messages. While the inspector shows a number of messages in the last twenty seconds, so it's hard to tell exactly which message it crashed on, it might have been the first message after 3 long messages that were part of a single message (first one starts with Then the next received message is a shorter 644 byte message, which might be the message being handled during this exception within In this case, I am using the default |
Hey,
Great library so far, but I encountered an issue that I can't explain.
A bit of background; I'm sending simulated air traffic to a browser that is displaying it in Leaflet. I'm sending info about 6000 planes, an update each 10 seconds. So about 600 messages per second. After 'some time' (seemingly random, but quicker with higher volumes) I get a pair of errors out of amqp-websocket-client.js:
As far as I can tell the data is intact. I have another listener on the same exchange (this one in Java) that parses the messages just fine.
Here is the code for the consumer running in the browser:
I am using your latest version:
Am I missing a step, or is something actually going wrong?
The text was updated successfully, but these errors were encountered: