Skip to content
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

Maximum call stack size exceeded #101

Open
Dadibom opened this issue Jan 30, 2020 · 1 comment
Open

Maximum call stack size exceeded #101

Dadibom opened this issue Jan 30, 2020 · 1 comment

Comments

@Dadibom
Copy link

Dadibom commented Jan 30, 2020

Sending and receiving lots of messages causes this:

RangeError: Maximum call stack size exceeded
    at Frame.removeListener (events.js:329:28)
    at cleanup (_stream_readable.js:701:10)
    at Frame.onunpipe (_stream_readable.js:685:9)
    at Frame.emit (events.js:210:5)
    at BufferReadable.Readable.unpipe (_stream_readable.js:831:12)
    at unpipe (_stream_readable.js:780:9)
    at Frame.onerror (_stream_readable.js:756:5)
    at Frame.emit (events.js:215:7)
    at service (node_modules/stompit/lib/OutgoingFrameStream.js:211:19)
    at dequeue (node_modules/stompit/lib/OutgoingFrameStream.js:263:3)
@Dadibom
Copy link
Author

Dadibom commented Jan 30, 2020

Might be an easy fix to just use setTimeout(service/dequeue, 0) instead of calling them recursively

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant