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

wss/ssl problem - Continuous frame sequence was not started. #372

Closed
GalloTeo opened this issue Feb 14, 2016 · 2 comments
Closed

wss/ssl problem - Continuous frame sequence was not started. #372

GalloTeo opened this issue Feb 14, 2016 · 2 comments

Comments

@GalloTeo
Copy link

Hi guys, i have a problem using the web socket server when i turn on the ssl
i can connect properly to the server but after few packets sent to the websocket server i get

on Socket Error java.nio.BufferOverflowException
on Socket Error org.java_websocket.exceptions.InvalidDataException: Continuous frame sequence was not started.

sometime instead i receive
on Socket Error org.java_websocket.exceptions.InvalidFrameException: bad rsv 4

or
on Socket Error org.java_websocket.exceptions.InvalidFrameException: bad rsv 1

the error seems to be more evident or easy to be reproduced with large packets, but even chunking the packets in smaller ones, it is present.

the problem is not dependent on the code itself, it's easy to be reproduced with just a dummy client which sends bytes.

i created the SSLContext like this
https://github.com/TooTallNate/Java-WebSocket/blob/master/src/main/example/SSLServerExample.java

i created the jks file from the .crt one because i could not find a way to directly load that and apply the RSA key. In addition i so that in your example there was the usage of jks so i guessed it as common practice.

any clue ?

thank you

@marci4
Copy link
Collaborator

marci4 commented Mar 30, 2017

Hello @GalloTeo,

do you still have this issue with the most recent lib version?

Which draft are you using?

Personally I dont have any issues with wss in my IDE and in production.

Greetings
marci4

@marci4
Copy link
Collaborator

marci4 commented May 5, 2017

Cannot reproduce.
No feedback.

Probably fixed with some commits.
Closing.
Greetings
marci4

@marci4 marci4 closed this as completed May 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants