Commit graph

4 commits

Author SHA1 Message Date
sideshowbarker
aabd3cd5fe Tests: Run a local WebSocket echo server in place of the hosted one
Problem: Our WebSocket tests were connecting to an externally-hosted
echo server — so they depended on network reachability from our CI
runners. Any network hiccups between a runner and that server timed the
tests out — and that’s been a relatively-frequent source of CI flakes.

Fix: Teach our existing in-tree echo server to also speak WebSocket. It
performs the RFC 6455 handshake, and echoes every text or binary frame
back — on the same OS-assigned port already exposed to tests. Updated
our tests to connect to that local server, not the remote one.

Also, updated our WebSocket echo.html to drive the exchange from its
onopen handler — rather than waiting for a server-initiated greeting.
That’s because: A frame the server sends in the moment right after the
handshake — before the client has sent anything — is currently delivered
unreliably by our (curl-backed) WebSocket client. See issue #9776.
2026-05-31 14:08:50 +02:00
Psychpsyo
b3487d8994 Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Jelle Raaijmakers
46abdd1126 Tests: Use own websocket echo server instead of websocket.org
The public one at echo.websocket.org tends to be slow at times,
frequently causing timeouts. Ideally we would run a local websocket
server but for now we can make do with a self-hosted alternative.
2025-03-10 17:16:15 +01:00
devgianlu
6889fa9695 LibWeb: Add simple in-tree WebSocket test 2025-02-17 19:52:43 +01:00