Skip to content
krrr edited this page Dec 15, 2019 · 7 revisions

Links

Wasted bandwidth sample

  • WS handshake request: 1 - (342 + 16) / 670 = 45%
  • WS handshake reply: 1 - 16 / 166 = 90%
  • normal data (per message): 1 - 1448 / 1460 = 0.8%

OpenShift: when server is behind ws proxy

browser http get:

b'GET / HTTP/1.1\r\nhost: xxx-krrr.rhcloud.com:8443\r\nuser-agent: ...\r\naccept: ...\r\naccept-language: ...\r\naccept-encoding: ...\r\nconnection: keep-alive\r\nX-Forwarded-For: ...\r\nX-Client-IP: ...\r\nX-Forwarded-Proto: https\r\nX-Forwarded-Host: xxx-krrr.rhcloud.com\r\nX-Forwarded-Port: 8443\r\n\r\n'

wstan http upgrade:

b'GET / HTTP/1.1\r\nConnection: Upgrade\r\nUpgrade: websocket\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Key: MTMtMTQ0NTQ4NTMzODE4NQ==\r\nHost: 127.12.57.1:8080\r\n\r\n'

and sec-key will be changed by the proxy

Clone this wiki locally