Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A connection resets after a client finishes sending a write but before it reads a response. What can the client conclude?" on CodeWiki (https://codewiki.com/practice/mcq/foundations/http-semantics/reset-outcome/).
Context (verbatim from the page):
"""
A connection resets after a client finishes sending a write but before it reads a response. What can the client conclude?
The server definitely rolled back the write.
The server definitely committed the write.
The application outcome is unknown without additional evidence.
The method automatically becomes idempotent.
"""
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.