Skip to content

Instantly share code, notes, and snippets.

@Raynos

Raynos/x.md Secret

Created August 11, 2012 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raynos/f733f869a1c413c8a72a to your computer and use it in GitHub Desktop.
Save Raynos/f733f869a1c413c8a72a to your computer and use it in GitHub Desktop.
  1. let b be a browser-side stream with a mux-demux id
  2. let s be the server-side stream with the same mux-demux id
  3. b sends a chunk to the server
  4. b buffers up another chunk to send to the server
  5. server receives first chunk and closes s
  6. server receives second chunk and falls over
  7. browser receives close message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment