Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A sender makes two TCP `send()` calls. What may the receiver observe?" on CodeWiki (https://codewiki.com/practice/mcq/foundations/checkpoint-4/checkpoint-4-tcp-boundary/).
Context (verbatim from the page):
"""
A sender makes two TCP `send()` calls. What may the receiver observe?
The bytes may arrive through one or many reads, so the application must define framing.
Exactly two reads with boundaries matching the two sends.
The bytes may be reordered even after TCP reports successful delivery.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in CS foundations. Where you are unsure, say so.