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

Properly receive websockets frames when using ssl #142

Closed
wants to merge 1 commit into from

Conversation

hce
Copy link

@hce hce commented Dec 18, 2014

It seems that websocket packets sent from the client to the mochiweb server are not received when using SSL websockets. I've added some code that seems to fix it...

@etrepum
Copy link
Member

etrepum commented Dec 18, 2014

A test for this would be awesome, as it would make it obvious how to reproduce the issue and prevent this from happening again.

@hce
Copy link
Author

hce commented Dec 18, 2014

You would need a websocket client library for the test...

@hce
Copy link
Author

hce commented Dec 18, 2014

Plus it's very easy to reproduce: Just create an ssl websocket and access it with a browser, plus send some data to it from the browser, and your websocket process instantly terminates.

@hce
Copy link
Author

hce commented Dec 19, 2014

Are you going to merge this or fix it yourself, or do you simply not care about websocket security?

@etrepum
Copy link
Member

etrepum commented Dec 20, 2014

I'm not going to merge this until there's some sort of test. I may write one myself, eventually, but I have other priorities this holiday season. Most people terminate SSL at some sort of load balancer and not directly with mochiweb.

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.

2 participants