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

Fix stack overflow crash #810

Merged
merged 2 commits into from Sep 22, 2016

Conversation

timjrobinson
Copy link
Contributor

If a message has many messageHandlers it can trigger a stack overflow as it recursively calls flush on each one. This ensures that the stack is cleared before each recursive flush is called.

Fixes #809

@JacksonTian
Copy link
Contributor

Could you provide a test case?

@timjrobinson
Copy link
Contributor Author

@JacksonTian done. I found the issue happens when you send too many messages while one is still processing.

@3rd-Eden
Copy link
Member

LGTM.

@JacksonTian JacksonTian merged commit 9475ebb into websockets:master Sep 22, 2016
@zertosh
Copy link

zertosh commented Nov 18, 2016

@JacksonTian any way you can publish a patch release with this fix? I'd very much appreciate it.

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

Successfully merging this pull request may close these issues.

None yet

4 participants