-
Notifications
You must be signed in to change notification settings - Fork 114
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
Add. Decode reserved bits in header. #55
base: master
Are you sure you want to change the base?
Conversation
why should we read out the reserved if they carry no info at all? |
SV1, RSV2, RSV3: 1 bit each
|
ok. but this implementation does not support extensions yet. further, we are not processing the rsv values... how can the autobahn test suite check this? |
Autobahn server send messages with setted rsv and client must close connection with 1002 status |
Ok. I don't see that the connection is closed when rsv != 0. Can we add this test to the Travis file? |
May be we can use autobahn server. The only problem is I do not know how detect test fail. {
"url": "ws://127.0.0.1:9001",
"outdir": "./reports/clients",
"cases": ["3.*"],
"exclude-cases": [],
"exclude-agent-cases": {}
} My test runner is https://github.com/moteus/lua-lluv-websocket/blob/master/test/autobahn_client_test.lua |
interesting. i'd like to integrate that somehow. anyways, shouldn't there be a check for rsv bytes and eventually a connection close? |
websocket implementation should check RSV and if it not 0 then it should start close handshake with status 1002. |
I just make commit to run autobahn tests on Travis for lluv-websocket. Without this PR tests 3.* are failed. |
👍 but still: we should integrate that test using the "official" api and auto-close the connection as you do in your lluv autobahn test client. |
Please take a look to autobahn_wclient_test. It uses pablic client API. {
"url": "ws://127.0.0.1:9001",
"outdir": "./reports/clients",
"cases": ["3.*"],
"exclude-cases": [],
"exclude-agent-cases": {}
} |
No description provided.