Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> does not fully support HTTP 1.1. As a result, for example, although it's possible, it's not trivial to proxy WebSocket connections

Non-sequitur. WebSocket protocol is not HTTP/1.1.

WebSocket does have HTTP-like handshake as a hack, but it does not give required behavior in spec-compliant HTTP/1.1 clients, e.g. RFC 2616 requires connection to be closed after Upgrade is sent. WebSockets needs it open. HTTP requires proxies seeing Connection:Upgrade to remove the Upgrade header. WebSocket clients require this header to be present.

So basically a fully HTTP/1.1 compliant proxy is unable to proxy WebSocket connections by design.

If you need only fast downstream communication, you can use Server-Sent Events though.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: