Skip to content
This repository has been archived by the owner on Oct 19, 2019. It is now read-only.

Failed to parse handshake! #35

Open
sushilksharma opened this issue Oct 13, 2016 · 0 comments
Open

Failed to parse handshake! #35

sushilksharma opened this issue Oct 13, 2016 · 0 comments

Comments

@sushilksharma
Copy link

I am getting this error logged in SuperWebSocket err log file, when client connects to the server developed using SuperWebSocket. But it seems the upgrade request send by client during websocket handshake is fine.

I added some trace logs in SuperWebSocket and it seems GET and HTTP/1.1 is coming in two different lines during the ReadLine call on StringReader , resulting in ParseHandshake throwing exception.

But when same header is printed by Logger, upgrade request seems to be fine.

GET / HTTP/1.1
Pragma: no-cache
Cache-Control: no-cache
Host: accesscomeserver.qa.mymaxprocloud.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: RMK4qLOdY/JVzCP1CDbaJg==
Origin: http://accesscomeserver.qa.mymaxprocloud.com
Sec-WebSocket-Protocol: honeywell.isom.http
Sec-WebSocket-Extensions:
Sec-WebSocket-Version: 13
X-HON-ISOM-Authorization: Basic MDA0MDg0MjE2MzkwOjAwNDA4NDIxNjM5MA==
Authorization: Basic MDA0MDg0MjE2MzkwOmJDV040V2dPYkFTcXUydTI=

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

No branches or pull requests

1 participant