From 0550cdf7074aff1552401522e26ac637c75ecb50 Mon Sep 17 00:00:00 2001 From: Brent Schroeter Date: Sun, 15 Mar 2026 23:22:20 -0700 Subject: [PATCH] update readme --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 00b841f..8a87669 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,18 @@ -# TCP Sprint +# [Will It Blend](https://youtu.be/l69Vi5IDc0g) This script demonstrates the risk of interleaving writes when cloning `TcpStream` handles across threads, re: [this discussion in the Servo Zulip](https://servo.zulipchat.com/#narrow/channel/263398-general/topic/TcpStream.3A.3Atry_clone.28.29.20thread.20safety.20in.20devtools/with/578172763). -It works by spawning 3 threads: 2 TCP clients, each of which sends predictable -chunks of bytes over a shared connection with `TcpStream::write_all()`, and 1 -TCP listener, which tests whether messages arrive contiguously or scrambled -together. +It spawns 3 threads: +- 2 TCP clients, each of which sends predictable chunks of bytes over a shared + connection with `TcpStream::write_all()` +- 1 TCP listener, which tests whether messages arrive contiguously or scrambled + together Messages consist of the range `0x00..=0xff`, repeated to fill the desired -message size. +message size. The TCP listener prints a warning if it detects any byte received +out of order. ## Usage