-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
I'm trying to dial a very simple echo server using webtransport-go but the opening handshake always times out so the session never becomes ready.
I've put a small repro case together here.
Running npm start will:
- Start a
webtransport-goecho server as a separate process- The server accepts bidirectional streams and just pipes the stream output to the input
- Dial the server using the client from
@fails-components/webtransport. - Starts a bidirectional stream
- Write one buffer
- Close the writable
- Read from the readable until it closes.
npm run browser starts the webtransport-go server but then spits out some JS you can paste into a browser to run the client portion of the test.
This works in Chrome but in node it fails with a handshake timeout after a short delay.
% npm start
> [email protected] start
> node index.js
SERVER start
SERVER ready
CLIENT create session https://127.0.0.1:12345/echo
CLIENT wait for session
WebTransportError: Opening handshake failed.
at Timeout._onTimeout (file:///Users/alex/Documents/Workspaces/achingbrain/webtransport-go-server/node_modules/@fails-components/webtransport/lib/client.js:91:11)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7) {
[Symbol(Symbol.toStringTag)]: 'WebTransportError'
}
Metadata
Metadata
Assignees
Labels
No labels